Changeset 3412567
- Timestamp:
- 12/05/2025 07:40:50 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deep-semantic-html-checker/trunk/deep-semantic-html-checker.php
r3412507 r3412567 3 3 * Plugin Name: Deep Semantic HTML Checker 4 4 * Description: Automatically fix common SEO issues related to heading structure in WordPress 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Mahdeep 7 7 * Author URI: https://github.com/Mahdeep … … 11 11 * Domain Path: /languages 12 12 * Requires at least: 5.0 13 * Tested up to: 6. 413 * Tested up to: 6.9 14 14 * Requires PHP: 7.2 15 15 */ … … 349 349 */ 350 350 public function sanitize_options($input) { 351 // Verify nonce 352 if (!isset($_POST['_wpnonce']) || !wp_verify_nonce($_POST['_wpnonce'], 'dshc_options_group-options')) { 353 add_settings_error('dshc_messages', 'dshc_nonce_error', __('Security check failed. Please try again.', 'deep-semantic-html-checker'), 'error'); 354 return $this->options; 355 } 356 351 357 $sanitized = array(); 352 358 … … 402 408 403 409 // Display success message 404 if (isset($_GET['settings-updated']) && check_admin_referer('dshc_options_group-options', false, false)) {410 if (isset($_GET['settings-updated'])) { 405 411 add_settings_error('dshc_messages', 'dshc_message', __('Settings saved successfully.', 'deep-semantic-html-checker'), 'updated'); 406 412 }
Note: See TracChangeset
for help on using the changeset viewer.