Version Description
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 4.21 |
Comparing to | |
See all releases |
Code changes from version 4.20 to 4.21
- gmw-widget.php +2 -2
- google-maps-widget.php +3 -4
- readme.txt +7 -2
gmw-widget.php
CHANGED
@@ -457,14 +457,14 @@ class GoogleMapsWidget extends WP_Widget {
|
|
457 |
$instance['address'] = strip_tags(trim($new_instance['address']));
|
458 |
|
459 |
$instance['thumb_pin_type'] = $new_instance['thumb_pin_type'];
|
460 |
-
$instance['thumb_pin_color'] = GMW::sanitize_hex_color(
|
461 |
$instance['thumb_pin_size'] = $new_instance['thumb_pin_size'];
|
462 |
$instance['thumb_pin_label'] = $new_instance['thumb_pin_label'];
|
463 |
$instance['thumb_pin_img'] = trim($new_instance['thumb_pin_img']);
|
464 |
$instance['thumb_width'] = min(640, max(50, (int) $new_instance['thumb_width']));
|
465 |
$instance['thumb_height'] = min(640, max(50, (int) $new_instance['thumb_height']));
|
466 |
$instance['thumb_zoom'] = $new_instance['thumb_zoom'];
|
467 |
-
$instance['thumb_type'] =
|
468 |
$instance['thumb_link_type'] = $new_instance['thumb_link_type'];
|
469 |
$instance['thumb_link'] = trim($new_instance['thumb_link']);
|
470 |
$instance['thumb_header'] = trim($new_instance['thumb_header']);
|
457 |
$instance['address'] = strip_tags(trim($new_instance['address']));
|
458 |
|
459 |
$instance['thumb_pin_type'] = $new_instance['thumb_pin_type'];
|
460 |
+
$instance['thumb_pin_color'] = GMW::sanitize_hex_color(@$new_instance['thumb_pin_color']);
|
461 |
$instance['thumb_pin_size'] = $new_instance['thumb_pin_size'];
|
462 |
$instance['thumb_pin_label'] = $new_instance['thumb_pin_label'];
|
463 |
$instance['thumb_pin_img'] = trim($new_instance['thumb_pin_img']);
|
464 |
$instance['thumb_width'] = min(640, max(50, (int) $new_instance['thumb_width']));
|
465 |
$instance['thumb_height'] = min(640, max(50, (int) $new_instance['thumb_height']));
|
466 |
$instance['thumb_zoom'] = $new_instance['thumb_zoom'];
|
467 |
+
$instance['thumb_type'] = @$new_instance['thumb_type'];
|
468 |
$instance['thumb_link_type'] = $new_instance['thumb_link_type'];
|
469 |
$instance['thumb_link'] = trim($new_instance['thumb_link']);
|
470 |
$instance['thumb_header'] = trim($new_instance['thumb_header']);
|
google-maps-widget.php
CHANGED
@@ -4,13 +4,13 @@ Plugin Name: Maps Widget for Google Maps
|
|
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: WebFactory Ltd
|
7 |
-
Version: 4.
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
11 |
Requires at least: 4.0
|
12 |
Requires PHP: 5.2
|
13 |
-
Tested up to: 5.
|
14 |
|
15 |
Copyright 2012 - 2021 WebFactory Ltd (email : gmw@webfactoryltd.com)
|
16 |
|
@@ -246,8 +246,7 @@ class GMW {
|
|
246 |
// get users maps api key or one of temporary plugin ones
|
247 |
static function get_api_key($type = 'static') {
|
248 |
$options = GMW::get_options();
|
249 |
-
$default_api_keys = array('
|
250 |
-
'AIzaSyCyD5k7KE2BqpCVoy4dPACJdjvRr2n5ofE');
|
251 |
|
252 |
if ($type == 'test' && strlen($options['api_key']) < 30) {
|
253 |
return false;
|
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: WebFactory Ltd
|
7 |
+
Version: 4.21
|
8 |
Author URI: https://www.gmapswidget.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
11 |
Requires at least: 4.0
|
12 |
Requires PHP: 5.2
|
13 |
+
Tested up to: 5.7
|
14 |
|
15 |
Copyright 2012 - 2021 WebFactory Ltd (email : gmw@webfactoryltd.com)
|
16 |
|
246 |
// get users maps api key or one of temporary plugin ones
|
247 |
static function get_api_key($type = 'static') {
|
248 |
$options = GMW::get_options();
|
249 |
+
$default_api_keys = array('AIzaSyBvCK51-6tqdH0gu_lsUK8SxlGrvfUzIfo');
|
|
|
250 |
|
251 |
if ($type == 'test' && strlen($options['api_key']) < 30) {
|
252 |
return false;
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Tags: google maps, maps, map, google map, google maps widget, map markers, 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: 5.
|
8 |
-
Stable tag: 4.
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Are your Google Maps slow? Try Map Widget for Google Maps. You'll have a fast Google Maps widget with a thumbnail & lightbox map in minutes!
|
@@ -181,6 +181,11 @@ Try <a href="http://www.niftymaps.co">Nifty Maps</a> - a comprehensive Map Build
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
|
|
|
|
184 |
= 4.20 =
|
185 |
* 2021/01/29
|
186 |
* modal map CSS fix
|
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.7
|
8 |
+
Stable tag: 4.21
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Are your Google Maps slow? Try Map Widget for Google Maps. You'll have a fast Google Maps widget with a thumbnail & lightbox map in minutes!
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 4.20 =
|
185 |
+
* 2021/03/07
|
186 |
+
* minor fixes
|
187 |
+
* checked on WP 5.7
|
188 |
+
|
189 |
= 4.20 =
|
190 |
* 2021/01/29
|
191 |
* modal map CSS fix
|