Update lelms-copyright.php

This commit is contained in:
文派备案 2025-04-07 11:51:54 +08:00
parent d74ddf7618
commit f29d48fbdb

View file

@ -3,7 +3,7 @@
* Plugin Name: LeLMS Copyright
* Plugin URI: https://wenpai.org/plugins/lelms-copyright
* Description: Adds watermark with username and prevents unauthorized screenshots
* Version: 1.1.6
* Version: 1.1.7
* Author: LeLMS.com
* Author URI: https://lelms.com
* License: GPL v2 or later
@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
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_PATH', plugin_dir_path(__FILE__));
define('LELMS_COPYRIGHT_BASENAME', plugin_basename(__FILE__));
@ -78,6 +78,10 @@ class LELMS_Copyright {
}
public function register_settings() {
if (!isset($_GET['page']) || $_GET['page'] !== 'lelms-copyright') {
return;
}
register_setting('lelms_copyright', 'lelms_copyright_options', array($this, 'sanitize_options'));
add_settings_section(