Plugin Directory

Changeset 2569621


Ignore:
Timestamp:
07/21/2021 10:59:39 PM (5 years ago)
Author:
timvaniersel
Message:

Fix validation

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

Legend:

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

    r2548573 r2569621  
    9595    public function options_update() {
    9696            if (isset($_POST[$this->plugin_name])){
    97                 $data = $this->validate($_POST[$this->plugin_name]);
    98                 // $data[] = $_POST['websitescanner_custom_schema_nonce']
     97                $data = sanitize_post($_POST[$this->plugin_name], 'js');
     98                $data = $this->validate($data);
    9999                if ($data) {
    100100                    update_post_meta( get_the_ID(), 'websitescanner_custom_schema_post_data', $data );
  • websitescanner-custom-schema/trunk/websitescanner-custom-schema.php

    r2548775 r2569621  
    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.4
     19 * Version:           1.3.5
    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.4' );
     38define( 'WEBSITESCANNER_CUSTOM_SCHEMA_VERSION', '1.3.5' );
    3939/**
    4040 * The core plugin class that is used to define internationalization,
Note: See TracChangeset for help on using the changeset viewer.