Snazzy Maps - Version 1.2.1

Version Description

Release Date: November 27th, 2019

  • Update: Additional security fixes.
Download this release

Release Info

Developer atmistinc
Plugin Icon 128x128 Snazzy Maps
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (5) hide show
  1. admin/index.php +1 -7
  2. admin/settings.php +8 -2
  3. admin/styles.php +7 -1
  4. readme.txt +8 -3
  5. snazzymaps.php +5 -5
admin/index.php CHANGED
@@ -20,13 +20,7 @@ class SnazzyMaps_Index {
20
  if($active_tab == 0){ \SnazzyMaps\SnazzyMaps_Styles::admin_styles_head(0); }
21
  if($active_tab == 1){ \SnazzyMaps\SnazzyMaps_Explore::admin_explore_head(1); }
22
  if($active_tab == 2){ \SnazzyMaps\SnazzyMaps_Settings::admin_my_snazzymaps_head(2); }
23
- if($active_tab == 3){ \SnazzyMaps\SnazzyMaps_Help::admin_help_head(3); }
24
-
25
- //Redirect to the next page
26
- if(!headers_sent()){
27
- header('Location: '. $_SERVER['REQUEST_URI']);
28
- exit();
29
- }
30
  }
31
  }
32
 
20
  if($active_tab == 0){ \SnazzyMaps\SnazzyMaps_Styles::admin_styles_head(0); }
21
  if($active_tab == 1){ \SnazzyMaps\SnazzyMaps_Explore::admin_explore_head(1); }
22
  if($active_tab == 2){ \SnazzyMaps\SnazzyMaps_Settings::admin_my_snazzymaps_head(2); }
23
+ if($active_tab == 3){ \SnazzyMaps\SnazzyMaps_Help::admin_help_head(3); }
 
 
 
 
 
 
24
  }
25
  }
26
 
admin/settings.php CHANGED
@@ -1,12 +1,18 @@
1
  <?php
2
  namespace SnazzyMaps;
3
  defined( 'ABSPATH' ) OR exit;
4
-
5
 
6
  class SnazzyMaps_Settings {
7
  public static function admin_my_snazzymaps_head($tab){
8
  if(isset($_POST['api_key']) && check_admin_referer('snazzy_maps_save_api_key')){
9
- update_option('MySnazzyAPIKey', sanitize_text_field($_POST['api_key']));
 
 
 
 
 
 
10
  }
11
  }
12
 
1
  <?php
2
  namespace SnazzyMaps;
3
  defined( 'ABSPATH' ) OR exit;
4
+ include_once(plugin_dir_path(__FILE__) . _DS . 'helpers.php');
5
 
6
  class SnazzyMaps_Settings {
7
  public static function admin_my_snazzymaps_head($tab){
8
  if(isset($_POST['api_key']) && check_admin_referer('snazzy_maps_save_api_key')){
9
+ update_option('MySnazzyAPIKey', sanitize_text_field($_POST['api_key']));
10
+
11
+ //Redirect to the next page
12
+ if(!headers_sent()){
13
+ wp_safe_redirect(\SnazzyMaps\SnazzyMaps_Helpers::esc_rel_url("?page=snazzy_maps&tab=2"));
14
+ exit();
15
+ }
16
  }
17
  }
18
 
admin/styles.php CHANGED
@@ -37,7 +37,13 @@ class SnazzyMaps_Styles {
37
  if(!\SnazzyMaps\SnazzyMaps_Styles::_getStyle($styles, $newStyle['id'])){
38
  $styles[] = $newStyle;
39
  update_option('SnazzyMapStyles', $styles);
40
- }
 
 
 
 
 
 
41
  }
42
  }
43
 
37
  if(!\SnazzyMaps\SnazzyMaps_Styles::_getStyle($styles, $newStyle['id'])){
38
  $styles[] = $newStyle;
39
  update_option('SnazzyMapStyles', $styles);
40
+ }
41
+
42
+ //Redirect to the next page
43
+ if(!headers_sent()){
44
+ wp_safe_redirect(\SnazzyMaps\SnazzyMaps_Helpers::esc_rel_url("?page=snazzy_maps&tab=0"));
45
+ exit();
46
+ }
47
  }
48
  }
49
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: atmistinc
3
  Donate link: https://snazzymaps.com/about
4
  Tags: google,maps,google maps,styled maps,styles,color,schemes,themes
5
  Requires at least: 3.0
6
- Tested up to: 5.2.4
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,11 +98,16 @@ If you happen to find any other map plugins that don't work please send us an em
98
 
99
  == Changelog ==
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
 
107
  = 1.1.5 =
108
  Release Date: August 1st, 2018
3
  Donate link: https://snazzymaps.com/about
4
  Tags: google,maps,google maps,styled maps,styles,color,schemes,themes
5
  Requires at least: 3.0
6
+ Tested up to: 5.3
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.2.1 =
102
+ Release Date: November 27th, 2019
103
+
104
+ * Update: Additional security fixes.
105
+
106
  = 1.2.0 =
107
  Release Date: November 26th, 2019
108
 
109
  * Update: Security fixes.
110
+ * Update: Verified that the plugin works with newer versions of WordPress up to 5.3.
111
 
112
  = 1.1.5 =
113
  Release Date: August 1st, 2018
snazzymaps.php CHANGED
@@ -3,12 +3,12 @@
3
  * Plugin Name: Snazzy Maps
4
  * Plugin URI: https://snazzymaps.com/plugins
5
  * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin.
6
- * Version: 1.2.0
7
- * Author: Atmist
8
- * Author URI: http://atmist.com/
9
  * License: GPL2
10
  */
11
- /* Copyright 2014 Atmist (email : hello@atmist.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
@@ -30,7 +30,7 @@ defined( 'ABSPATH' ) OR exit;
30
  //This API key is used to explore the styles in snazzy maps
31
  define('SNAZZY_MAPS_API_BASE', 'https://snazzymaps.com/');
32
  define('SNAZZY_MAPS_API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493');
33
- define('SNAZZY_MAPS_VERSION_NUMBER', '1.2.0');
34
 
35
  if(!defined('_DS')) {
36
  define('_DS', '/');
3
  * Plugin Name: Snazzy Maps
4
  * Plugin URI: https://snazzymaps.com/plugins
5
  * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin.
6
+ * Version: 1.2.1
7
+ * Author: Snazzy Maps
8
+ * Author URI: https://snazzymaps.com
9
  * License: GPL2
10
  */
11
+ /* Copyright 2014 Snazzy Maps (email : support@snazzymaps.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
30
  //This API key is used to explore the styles in snazzy maps
31
  define('SNAZZY_MAPS_API_BASE', 'https://snazzymaps.com/');
32
  define('SNAZZY_MAPS_API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493');
33
+ define('SNAZZY_MAPS_VERSION_NUMBER', '1.2.1');
34
 
35
  if(!defined('_DS')) {
36
  define('_DS', '/');