Version Description
- 2018/11/27
- fixed vulnerability issue related to wp_redirect()
- 1,700,100 downloads
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 4.02 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.02
- gmw-tracking.php +3 -3
- google-maps-widget.php +10 -10
- readme.txt +8 -3
gmw-tracking.php
CHANGED
@@ -62,11 +62,11 @@ class GMW_tracking {
|
|
62 |
if (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_in') {
|
63 |
GMW::set_options(array('allow_tracking' => true));
|
64 |
self::send_data(true);
|
65 |
-
|
66 |
die();
|
67 |
} elseif (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_out') {
|
68 |
GMW::set_options(array('allow_tracking' => false));
|
69 |
-
|
70 |
die();
|
71 |
}
|
72 |
} // check_opt_in_out
|
@@ -169,4 +169,4 @@ class GMW_tracking {
|
|
169 |
|
170 |
return $count;
|
171 |
} // count_active_widgets
|
172 |
-
} // class GMW_tracking
|
62 |
if (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_in') {
|
63 |
GMW::set_options(array('allow_tracking' => true));
|
64 |
self::send_data(true);
|
65 |
+
wp_safe_redirect(esc_url_raw(remove_query_arg('gmw_tracking')));
|
66 |
die();
|
67 |
} elseif (isset($_GET['gmw_tracking']) && $_GET['gmw_tracking'] == 'opt_out') {
|
68 |
GMW::set_options(array('allow_tracking' => false));
|
69 |
+
wp_safe_redirect(esc_url_raw(remove_query_arg('gmw_tracking')));
|
70 |
die();
|
71 |
}
|
72 |
} // check_opt_in_out
|
169 |
|
170 |
return $count;
|
171 |
} // count_active_widgets
|
172 |
+
} // class GMW_tracking
|
google-maps-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
|
|
4 |
Plugin URI: https://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Google Maps Widget
|
7 |
-
Version: 4.
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
@@ -474,27 +474,27 @@ class GMW {
|
|
474 |
// handle dismiss button for notices
|
475 |
static function dismiss_notice() {
|
476 |
if (empty($_GET['notice'])) {
|
477 |
-
|
478 |
exit;
|
479 |
}
|
480 |
|
481 |
if ($_GET['notice'] == 'upgrade') {
|
482 |
GMW::set_options(array('dismiss_notice_upgrade2' => true));
|
483 |
-
}
|
484 |
-
if ($_GET['notice'] == 'rate') {
|
485 |
GMW::set_options(array('dismiss_notice_rate' => true));
|
486 |
-
}
|
487 |
-
if ($_GET['notice'] == 'api_key') {
|
488 |
GMW::set_options(array('dismiss_notice_api_key' => true));
|
489 |
-
}
|
490 |
-
if ($_GET['notice'] == 'olduser') {
|
491 |
GMW::set_options(array('dismiss_notice_olduser' => true));
|
|
|
|
|
|
|
492 |
}
|
493 |
|
494 |
if (!empty($_GET['redirect'])) {
|
495 |
-
|
496 |
} else {
|
497 |
-
|
498 |
}
|
499 |
|
500 |
exit;
|
4 |
Plugin URI: https://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Google Maps Widget
|
7 |
+
Version: 4.02
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
474 |
// handle dismiss button for notices
|
475 |
static function dismiss_notice() {
|
476 |
if (empty($_GET['notice'])) {
|
477 |
+
wp_safe_redirect(admin_url());
|
478 |
exit;
|
479 |
}
|
480 |
|
481 |
if ($_GET['notice'] == 'upgrade') {
|
482 |
GMW::set_options(array('dismiss_notice_upgrade2' => true));
|
483 |
+
} elseif ($_GET['notice'] == 'rate') {
|
|
|
484 |
GMW::set_options(array('dismiss_notice_rate' => true));
|
485 |
+
} elseif ($_GET['notice'] == 'api_key') {
|
|
|
486 |
GMW::set_options(array('dismiss_notice_api_key' => true));
|
487 |
+
} elseif ($_GET['notice'] == 'olduser') {
|
|
|
488 |
GMW::set_options(array('dismiss_notice_olduser' => true));
|
489 |
+
} else {
|
490 |
+
wp_safe_redirect(admin_url());
|
491 |
+
exit;
|
492 |
}
|
493 |
|
494 |
if (!empty($_GET['redirect'])) {
|
495 |
+
wp_safe_redirect($_GET['redirect']);
|
496 |
} else {
|
497 |
+
wp_safe_redirect(admin_url());
|
498 |
}
|
499 |
|
500 |
exit;
|
readme.txt
CHANGED
@@ -4,15 +4,15 @@ Tags: google maps, maps, map, map markers, google map, google maps plugin, wp go
|
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
-
Tested up to:
|
8 |
-
Stable tag: 4.
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Google Maps taking forever to load? Try Google Maps Widget. You'll have a fast Google Map with a thumbnail & lightbox in minutes!
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Tired of buggy & slow Google Maps plugins that take hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes! **No nonsense Google maps - we know you're in a hurry!** Join 100,000+ happy Google maps users.
|
16 |
|
17 |
[youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
|
18 |
|
@@ -181,6 +181,11 @@ Try <a href="http://www.niftymaps.co">Nifty Maps</a> - a comprehensive Map Build
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
|
|
184 |
= 4.0 =
|
185 |
* 2018/09/18
|
186 |
* added Gray thumbnail color scheme
|
4 |
License: GPLv2 or later
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
+
Tested up to: 5.0
|
8 |
+
Stable tag: 4.02
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Google Maps taking forever to load? Try Google Maps Widget. You'll have a fast Google Map with a thumbnail & lightbox in minutes!
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Tired of buggy & slow Google Maps plugins that take hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes! **No nonsense Google maps - we know you're in a hurry!** Join 100,000+ happy Google maps users. If you've already switched to Gutenberg grab our free <a href="https://wordpress.org/plugins/map-block-gutenberg/">Google Maps Gutenberg Block</a> plugin.
|
16 |
|
17 |
[youtube https://www.youtube.com/watch?v=oVrTGKepPPI]
|
18 |
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 4.02 =
|
185 |
+
* 2018/11/27
|
186 |
+
* fixed vulnerability issue related to wp_redirect()
|
187 |
+
* 1,700,100 downloads
|
188 |
+
|
189 |
= 4.0 =
|
190 |
* 2018/09/18
|
191 |
* added Gray thumbnail color scheme
|