Plugin Directory

Changeset 2201723


Ignore:
Timestamp:
11/27/2019 02:45:56 AM (6 years ago)
Author:
atmistinc
Message:
  • Update: Security fixes.
  • Update: Verified that the plugin works with newer versions of WordPress up to 5.3.
Location:
snazzy-maps/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • snazzy-maps/trunk/admin/settings.php

    r1918571 r2201723  
    1212
    1313    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')){
    1515            delete_option('MySnazzyAPIKey');
    1616        }       
     
    3434               <button type="submit" class="button button-primary">SAVE</button>
    3535               <?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')); ?>"
    3737                                class="button button-error">DELETE</a>
    3838               <?php } ?>             
  • snazzy-maps/trunk/admin/styles.php

    r1918571 r2201723  
    2020
    2121    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']));
    2323    }
    2424
     
    5151               
    5252        //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']))){
    5454            $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style']));
    5555            $defaultStyle = get_option('SnazzyMapDefaultStyle', null); 
     
    6767       
    6868        //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']))){
    7070            $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style']));
    7171            if(!is_null($index)){
     
    7575       
    7676        //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']))){
    7878            $index = \SnazzyMaps\SnazzyMaps_Styles::_getStyleIndex($styles, sanitize_text_field($_GET['style']));
    7979            $defaultStyle = get_option('SnazzyMapDefaultStyle', null);   
     
    8686       
    8787        $defaultStyle = get_option('SnazzyMapDefaultStyle', null);
    88        
    89         //Used during testing
    90         if(isset($_GET['clear_styles'])){
    91             delete_option('SnazzyMapStyles');
    92         }
    9388?>
    9489           
  • snazzy-maps/trunk/readme.txt

    r1918571 r2201723  
    44Tags: google,maps,google maps,styled maps,styles,color,schemes,themes
    55Requires at least: 3.0
    6 Tested up to: 4.9.7
    7 Stable tag: 1.1.5
     6Tested up to: 5.2.4
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9999== Changelog ==
    100100
     101= 1.2.0 =
     102Release 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
    101107= 1.1.5 =
    102108Release Date: August 1st, 2018
  • snazzy-maps/trunk/snazzymaps.php

    r1918571 r2201723  
    44 * Plugin URI: https://snazzymaps.com/plugins
    55 * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin.
    6  * Version: 1.1.5
     6 * Version: 1.2.0
    77 * Author: Atmist
    88 * Author URI: http://atmist.com/
     
    3131define('SNAZZY_MAPS_API_BASE', 'https://snazzymaps.com/');
    3232define('SNAZZY_MAPS_API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493');
    33 define('SNAZZY_MAPS_VERSION_NUMBER', '1.1.5');
     33define('SNAZZY_MAPS_VERSION_NUMBER', '1.2.0');
    3434
    3535if(!defined('_DS')) {
Note: See TracChangeset for help on using the changeset viewer.