mirror of
https://github.com/WenPai-org/lelms-copyright.git
synced 2025-08-03 12:31:28 +08:00
Update lelms-copyright.php
This commit is contained in:
parent
d74ddf7618
commit
f29d48fbdb
1 changed files with 7 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: LeLMS Copyright
|
* Plugin Name: LeLMS Copyright
|
||||||
* Plugin URI: https://wenpai.org/plugins/lelms-copyright
|
* Plugin URI: https://wenpai.org/plugins/lelms-copyright
|
||||||
* Description: Adds watermark with username and prevents unauthorized screenshots
|
* Description: Adds watermark with username and prevents unauthorized screenshots
|
||||||
* Version: 1.1.6
|
* Version: 1.1.7
|
||||||
* Author: LeLMS.com
|
* Author: LeLMS.com
|
||||||
* Author URI: https://lelms.com
|
* Author URI: https://lelms.com
|
||||||
* License: GPL v2 or later
|
* License: GPL v2 or later
|
||||||
|
@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define('LELMS_COPYRIGHT_VERSION', '1.1.6');
|
define('LELMS_COPYRIGHT_VERSION', '1.1.7');
|
||||||
define('LELMS_COPYRIGHT_DIR_URL', plugin_dir_url(__FILE__));
|
define('LELMS_COPYRIGHT_DIR_URL', plugin_dir_url(__FILE__));
|
||||||
define('LELMS_COPYRIGHT_DIR_PATH', plugin_dir_path(__FILE__));
|
define('LELMS_COPYRIGHT_DIR_PATH', plugin_dir_path(__FILE__));
|
||||||
define('LELMS_COPYRIGHT_BASENAME', plugin_basename(__FILE__));
|
define('LELMS_COPYRIGHT_BASENAME', plugin_basename(__FILE__));
|
||||||
|
@ -78,7 +78,11 @@ class LELMS_Copyright {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function register_settings() {
|
public function register_settings() {
|
||||||
register_setting('lelms_copyright', 'lelms_copyright_options', array($this, 'sanitize_options'));
|
if (!isset($_GET['page']) || $_GET['page'] !== 'lelms-copyright') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
register_setting('lelms_copyright', 'lelms_copyright_options', array($this, 'sanitize_options'));
|
||||||
|
|
||||||
add_settings_section(
|
add_settings_section(
|
||||||
'lelms_copyright_section',
|
'lelms_copyright_section',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue