Changeset 2598963
- Timestamp:
- 09/14/2021 10:19:58 PM (5 years ago)
- Location:
- find-my-blocks
- Files:
-
- 6 edited
- 1 copied
-
tags/3.5.1 (copied) (copied from find-my-blocks/trunk)
-
tags/3.5.1/find-my-blocks.php (modified) (1 diff)
-
tags/3.5.1/inc/save-settings.php (modified) (3 diffs)
-
tags/3.5.1/readme.txt (modified) (1 diff)
-
trunk/find-my-blocks.php (modified) (1 diff)
-
trunk/inc/save-settings.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
find-my-blocks/tags/3.5.1/find-my-blocks.php
r2598386 r2598963 4 4 * Plugin URI: https://find-my-blocks.eddysims.com 5 5 * Description: A plugin to find your gutenberg blocks 6 * Version: 3.5. 06 * Version: 3.5.1 7 7 * Author: Eddy Sims 8 8 * Author URI: https://eddysims.com -
find-my-blocks/tags/3.5.1/inc/save-settings.php
r2598386 r2598963 5 5 check_ajax_referer( 'wp_rest' ); 6 6 7 $new_settings = sanitize_option('find -my-blocks', $_REQUEST['settings']);7 $new_settings = sanitize_option('find_my_blocks_settings', $_REQUEST['settings']); 8 8 $current_settings = get_option( 'find_my_blocks_settings' ); 9 9 … … 31 31 function sanitize_find_my_blocks_settings( $data ) { 32 32 33 $json_data = sanitize_text_field( json_encode( $data ) );34 $new_data = json_decode( $json_data );35 36 33 if (!is_array( $data )) { 37 34 wp_die( 'Invalid entry, go back and try again.' ); … … 46 43 return $result; 47 44 } 48 49 add_filter( 'sanitize_option_find-my-blocks', 'sanitize_find_my_blocks_settings' );50 45 } 46 add_filter( 'sanitize_option_find_my_blocks_settings', 'sanitize_find_my_blocks_settings' ); -
find-my-blocks/tags/3.5.1/readme.txt
r2598386 r2598963 5 5 Requires at least: 5.0 6 6 Tested up to: 5.8 7 Stable tag: 3.5. 07 Stable tag: 3.5.1 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later -
find-my-blocks/trunk/find-my-blocks.php
r2598386 r2598963 4 4 * Plugin URI: https://find-my-blocks.eddysims.com 5 5 * Description: A plugin to find your gutenberg blocks 6 * Version: 3.5. 06 * Version: 3.5.1 7 7 * Author: Eddy Sims 8 8 * Author URI: https://eddysims.com -
find-my-blocks/trunk/inc/save-settings.php
r2598386 r2598963 5 5 check_ajax_referer( 'wp_rest' ); 6 6 7 $new_settings = sanitize_option('find -my-blocks', $_REQUEST['settings']);7 $new_settings = sanitize_option('find_my_blocks_settings', $_REQUEST['settings']); 8 8 $current_settings = get_option( 'find_my_blocks_settings' ); 9 9 … … 31 31 function sanitize_find_my_blocks_settings( $data ) { 32 32 33 $json_data = sanitize_text_field( json_encode( $data ) );34 $new_data = json_decode( $json_data );35 36 33 if (!is_array( $data )) { 37 34 wp_die( 'Invalid entry, go back and try again.' ); … … 46 43 return $result; 47 44 } 48 49 add_filter( 'sanitize_option_find-my-blocks', 'sanitize_find_my_blocks_settings' );50 45 } 46 add_filter( 'sanitize_option_find_my_blocks_settings', 'sanitize_find_my_blocks_settings' ); -
find-my-blocks/trunk/readme.txt
r2598386 r2598963 5 5 Requires at least: 5.0 6 6 Tested up to: 5.8 7 Stable tag: 3.5. 07 Stable tag: 3.5.1 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.