Plugin Directory

Changeset 2548573


Ignore:
Timestamp:
06/15/2021 10:28:36 PM (5 years ago)
Author:
timvaniersel
Message:

Fix nonce check

Location:
websitescanner-custom-schema/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • websitescanner-custom-schema/trunk/admin/class-websitescanner-custom-schema-admin.php

    r2548553 r2548573  
    9696            if (isset($_POST[$this->plugin_name])){
    9797                $data = $this->validate($_POST[$this->plugin_name]);
     98                // $data[] = $_POST['websitescanner_custom_schema_nonce']
    9899                if ($data) {
    99100                    update_post_meta( get_the_ID(), 'websitescanner_custom_schema_post_data', $data );
     
    107108                    return;
    108109            // security check
    109             if ( isset($_POST['websitescanner_custom_schema_nonce']) || !wp_verify_nonce( $_POST['websitescanner_custom_schema_nonce'], plugin_basename( __FILE__ ) ) )
     110            if ( !isset($_POST['websitescanner_custom_schema_nonce']) || !wp_verify_nonce( $_POST['websitescanner_custom_schema_nonce'], plugin_basename( __FILE__ ) ) )
    110111                    return;
    111112
  • websitescanner-custom-schema/trunk/websitescanner-custom-schema.php

    r2548553 r2548573  
    1717 * Plugin URI:        https://plugin.nl/en/websitescanner-custom-schema-plugin/
    1818 * Description:       Adds a field to the editor for custom JSON-ld schema markup.
    19  * Version:           1.3.2
     19 * Version:           1.3.3
    2020 * Author:            Plugin.nl
    2121 * Author URI:        https://plugin.nl/en/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'WEBSITESCANNER_CUSTOM_SCHEMA_VERSION', '1.3.1' );
     38define( 'WEBSITESCANNER_CUSTOM_SCHEMA_VERSION', '1.3.3' );
    3939/**
    4040 * The core plugin class that is used to define internationalization,
Note: See TracChangeset for help on using the changeset viewer.