Changeset 2201723
- Timestamp:
- 11/27/2019 02:45:56 AM (6 years ago)
- Location:
- snazzy-maps/trunk
- Files:
-
- 4 edited
-
admin/settings.php (modified) (2 diffs)
-
admin/styles.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
snazzymaps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
snazzy-maps/trunk/admin/settings.php
r1918571 r2201723 12 12 13 13 public static function admin_my_snazzymaps_tab($tab){ 14 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'delete_key' ){14 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'delete_key' && wp_verify_nonce($_GET['_wpnonce'], 'delete_key')){ 15 15 delete_option('MySnazzyAPIKey'); 16 16 } … … 34 34 <button type="submit" class="button button-primary">SAVE</button> 35 35 <?php if(!is_null($api_key)){ ?> 36 <a href="?page=snazzy_maps&tab=2&action=delete_key "36 <a href="?page=snazzy_maps&tab=2&action=delete_key&_wpnonce=<?php echo esc_attr(wp_create_nonce('delete_key')); ?>" 37 37 class="button button-error">DELETE</a> 38 38 <?php } ?> -
snazzy-maps/trunk/admin/styles.php
r1918571 r2201723 20 20 21 21 public static function _styleAction(&$style, $action){ 22 return \SnazzyMaps\SnazzyMaps_Helpers::esc_rel_url("?page=snazzy_maps&tab=0&action=$action&style=" . $style['id'] );22 return \SnazzyMaps\SnazzyMaps_Helpers::esc_rel_url("?page=snazzy_maps&tab=0&action=$action&style=" . $style['id'] . "&_wpnonce=" . wp_create_nonce($action . "_" . $style['id'])); 23 23 } 24 24 … … 51 51 52 52 //Delete the specified style from the array 53 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'delete_style' ){53 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'delete_style' && wp_verify_nonce($_GET['_wpnonce'], 'delete_style_' . sanitize_text_field($_GET['style']))){ 54 54 $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style'])); 55 55 $defaultStyle = get_option('SnazzyMapDefaultStyle', null); … … 67 67 68 68 //Enable the specified style 69 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'enable_style' ){69 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'enable_style' && wp_verify_nonce($_GET['_wpnonce'], 'enable_style_' . sanitize_text_field($_GET['style']))){ 70 70 $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style'])); 71 71 if(!is_null($index)){ … … 75 75 76 76 //Disable the specified style 77 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'disable_style' ){77 if(isset($_GET['action']) && sanitize_text_field($_GET['action']) == 'disable_style' && wp_verify_nonce($_GET['_wpnonce'], 'disable_style_' . sanitize_text_field($_GET['style']))){ 78 78 $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style'])); 79 79 $defaultStyle = get_option('SnazzyMapDefaultStyle', null); … … 86 86 87 87 $defaultStyle = get_option('SnazzyMapDefaultStyle', null); 88 89 //Used during testing90 if(isset($_GET['clear_styles'])){91 delete_option('SnazzyMapStyles');92 }93 88 ?> 94 89 -
snazzy-maps/trunk/readme.txt
r1918571 r2201723 4 4 Tags: google,maps,google maps,styled maps,styles,color,schemes,themes 5 5 Requires at least: 3.0 6 Tested up to: 4.9.77 Stable tag: 1. 1.56 Tested up to: 5.2.4 7 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 99 99 == Changelog == 100 100 101 = 1.2.0 = 102 Release Date: November 26th, 2019 103 104 * Update: Security fixes. 105 * Update: Verified that the plugin works with newer versions of WordPress up to the current latest (version 5.2.4). 106 101 107 = 1.1.5 = 102 108 Release Date: August 1st, 2018 -
snazzy-maps/trunk/snazzymaps.php
r1918571 r2201723 4 4 * Plugin URI: https://snazzymaps.com/plugins 5 5 * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin. 6 * Version: 1. 1.56 * Version: 1.2.0 7 7 * Author: Atmist 8 8 * Author URI: http://atmist.com/ … … 31 31 define('SNAZZY_MAPS_API_BASE', 'https://snazzymaps.com/'); 32 32 define('SNAZZY_MAPS_API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493'); 33 define('SNAZZY_MAPS_VERSION_NUMBER', '1. 1.5');33 define('SNAZZY_MAPS_VERSION_NUMBER', '1.2.0'); 34 34 35 35 if(!defined('_DS')) {
Note: See TracChangeset
for help on using the changeset viewer.