Google Maps Widget – Ultimate Google Maps Plugin - Version 4.22

Version Description

  • 2021/07/18
  • added notice for WP 5.8
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Google Maps Widget – Ultimate Google Maps Plugin
Version 4.22
Comparing to
See all releases

Code changes from version 4.21 to 4.22

Files changed (2) hide show
  1. google-maps-widget.php +17 -3
  2. readme.txt +8 -4
google-maps-widget.php CHANGED
@@ -4,15 +4,15 @@ 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.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
 
17
  This program is free software; you can redistribute it and/or modify
18
  it under the terms of the GNU General Public License, version 2, as
@@ -486,6 +486,12 @@ class GMW {
486
  static function add_notices() {
487
  $options = GMW::get_options();
488
  $notice = false;
 
 
 
 
 
 
489
 
490
  // upgrade notice is shown after install
491
  if (!$notice && empty($options['dismiss_notice_upgrade2']) &&
@@ -518,6 +524,14 @@ class GMW {
518
  } // add_notices
519
 
520
 
 
 
 
 
 
 
 
 
521
  // display message to get pro features for GMW
522
  static function notice_upgrade() {
523
  $promo_delta = HOUR_IN_SECONDS - 2;
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.22
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: 6.0
14
 
15
+ Copyright 2012 - 2022 WebFactory Ltd (email : gmw@webfactoryltd.com)
16
 
17
  This program is free software; you can redistribute it and/or modify
18
  it under the terms of the GNU General Public License, version 2, as
486
  static function add_notices() {
487
  $options = GMW::get_options();
488
  $notice = false;
489
+ global $wp_version;
490
+
491
+ if (false == is_plugin_active('classic-widgets/classic-widgets.php') && version_compare($wp_version, '5.8', '>=') == true) {
492
+ $notice = true;
493
+ add_action('admin_notices', array('GMW', 'notice_classic_widgets'));
494
+ }
495
 
496
  // upgrade notice is shown after install
497
  if (!$notice && empty($options['dismiss_notice_upgrade2']) &&
524
  } // add_notices
525
 
526
 
527
+ // display error notice if classic widgets are not available
528
+ static function notice_classic_widgets() {
529
+ echo '<div class="error notice" style="max-width: 700px;"><p><b>🔥 IMPORTANT 🔥</b><br><br>Google Maps Widget is NOT compatible with the new widgets edit screen (powered by Gutenberg).
530
+ <br>Install the official <a href="' . admin_url('plugin-install.php?s=classic%20widgets&tab=search&type=term') . '">Classic Widgets</a> plugin if you want to continue using Google Maps Widget.<br>
531
+ Or install the <a href="' . admin_url('plugin-install.php?s=map%20block&tab=search&type=tag') . '">free Map Block plugin</a> as the fastest way to add a great map to any post or sidebar.</p></div>';
532
+ } // notice_classic_widgets
533
+
534
+
535
  // display message to get pro features for GMW
536
  static function notice_upgrade() {
537
  $promo_delta = HOUR_IN_SECONDS - 2;
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Maps Widget for Google Maps - Google Maps Builder ===
2
  Contributors: WebFactory
3
  Tags: google maps, maps, map, google map, google maps widget, map markers, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
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,7 +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/03/07
186
  * minor fixes
187
  * checked on WP 5.7
1
+ === Maps Widget for Google Maps ===
2
  Contributors: WebFactory
3
  Tags: google maps, maps, map, google map, google maps widget, map markers, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
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: 6.1
8
+ Stable tag: 4.22
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.22 =
185
+ * 2021/07/18
186
+ * added notice for WP 5.8
187
+
188
+ = 4.21 =
189
  * 2021/03/07
190
  * minor fixes
191
  * checked on WP 5.7