Plugin Directory

Changeset 3412567


Ignore:
Timestamp:
12/05/2025 07:40:50 PM (3 months ago)
Author:
mpds93
Message:

test up to update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deep-semantic-html-checker/trunk/deep-semantic-html-checker.php

    r3412507 r3412567  
    33 * Plugin Name: Deep Semantic HTML Checker
    44 * Description: Automatically fix common SEO issues related to heading structure in WordPress
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: Mahdeep
    77 * Author URI: https://github.com/Mahdeep
     
    1111 * Domain Path: /languages
    1212 * Requires at least: 5.0
    13  * Tested up to: 6.4
     13 * Tested up to: 6.9
    1414 * Requires PHP: 7.2
    1515 */
     
    349349     */
    350350    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       
    351357        $sanitized = array();
    352358       
     
    402408       
    403409        // Display success message
    404         if (isset($_GET['settings-updated']) && check_admin_referer('dshc_options_group-options', false, false)) {
     410        if (isset($_GET['settings-updated'])) {
    405411            add_settings_error('dshc_messages', 'dshc_message', __('Settings saved successfully.', 'deep-semantic-html-checker'), 'updated');
    406412        }
Note: See TracChangeset for help on using the changeset viewer.