WP Google Maps - Version 8.0.31

Version Description

  • 2020-12-22 - Medium priority =
  • Added PHP 8 compatibility notice. PHP 8 is not currently supported, and the plugin will be disabled to prevent fatal errors in these cases. Support will be added soon
Download this release

Release Info

Developer WPGMaps
Plugin Icon 128x128 WP Google Maps
Version 8.0.31
Comparing to
See all releases

Code changes from version 8.0.30 to 8.0.31

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wpGoogleMaps.php +36 -5
readme.txt CHANGED
@@ -216,6 +216,9 @@ Please update your WP Google Maps version to 6.2.1 to ensure you are using the l
216
 
217
  == Changelog ==
218
 
 
 
 
219
  = 8.0.30 - 2020-12-17 - Medium priority =
220
  * Adds DOMElement support for PHP 8
221
  * Fixed GDPR message showing multiple times on some installations
@@ -1503,4 +1506,4 @@ Please update your WP Google Maps version to 6.2.1 to ensure you are using the l
1503
 
1504
 
1505
 
1506
- For more, please view the WP Google Maps site
216
 
217
  == Changelog ==
218
 
219
+ = 8.0.31 - 2020-12-22 - Medium priority =
220
+ * Added PHP 8 compatibility notice. PHP 8 is not currently supported, and the plugin will be disabled to prevent fatal errors in these cases. Support will be added soon
221
+
222
  = 8.0.30 - 2020-12-17 - Medium priority =
223
  * Adds DOMElement support for PHP 8
224
  * Fixed GDPR message showing multiple times on some installations
1506
 
1507
 
1508
 
1509
+ For more, please view the WP Google Maps site
wpGoogleMaps.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Maps
4
  Plugin URI: https://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
- Version: 8.0.30
7
  Author: WP Google Maps
8
  Author URI: https://www.wpgmaps.com
9
  Text Domain: wp-google-maps
@@ -11,6 +11,9 @@ Domain Path: /languages
11
  */
12
 
13
  /*
 
 
 
14
  * 8.0.30 - 2020-12-17 - Medium priority
15
  * Adds DOMElement support for PHP 8
16
  * Fixed GDPR message showing multiple times on some installations
@@ -1480,11 +1483,38 @@ if(!$integrityChecker->check(plugin_dir_path(__FILE__) . 'includes'))
1480
  }
1481
  }*/
1482
 
1483
- if(wpgmza_preload_is_in_developer_mode())
1484
  {
1485
- require_once(plugin_dir_path(__FILE__) . 'legacy-core.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1486
  }
1487
- else
 
 
 
 
1488
  try{
1489
  require_once(plugin_dir_path(__FILE__) . 'legacy-core.php');
1490
  }catch(Exception $e) {
@@ -1506,4 +1536,5 @@ else
1506
  <?php
1507
 
1508
  });
1509
- }
 
3
  Plugin Name: WP Google Maps
4
  Plugin URI: https://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
+ Version: 8.0.31
7
  Author: WP Google Maps
8
  Author URI: https://www.wpgmaps.com
9
  Text Domain: wp-google-maps
11
  */
12
 
13
  /*
14
+ * 8.0.31 - 2020-12-22 - Medium priority
15
+ * Added PHP 8 compatibility notice. PHP 8 is not currently supported, and the plugin will be disabled to prevent fatal errors in these cases. Support will be added soon
16
+ *
17
  * 8.0.30 - 2020-12-17 - Medium priority
18
  * Adds DOMElement support for PHP 8
19
  * Fixed GDPR message showing multiple times on some installations
1483
  }
1484
  }*/
1485
 
1486
+ if(!function_exists('wpgmza_show_php8_incompatibility_error'))
1487
  {
1488
+ function wpgmza_show_php8_incompatibility_error()
1489
+ {
1490
+ ?>
1491
+ <div class="notice notice-error">
1492
+ <h4>WP Google Maps - Error Found</h4>
1493
+ <p>
1494
+ <?php
1495
+ _e('PHP 8 includes significant changes from PHP 7, which may cause unexpected issues with our core functionality. WP Google Maps is not officially supported with PHP 8, but support will be added in the near future.', 'wp-google-maps');
1496
+ ?>
1497
+ </p>
1498
+
1499
+ <p>
1500
+ <?php
1501
+ _e('To continue using WP Google Maps, please downgrade to PHP 7, as it is fully supported by our plugin.', 'wp-google-maps');
1502
+ ?>
1503
+ </p>
1504
+ </div>
1505
+ <?php
1506
+ }
1507
+ }
1508
+
1509
+ if(version_compare(phpversion(), '8.0', '>=')){
1510
+ add_action('admin_notices', 'wpgmza_show_php8_incompatibility_error');
1511
+ return;
1512
  }
1513
+
1514
+
1515
+ if(wpgmza_preload_is_in_developer_mode()){
1516
+ require_once(plugin_dir_path(__FILE__) . 'legacy-core.php');
1517
+ }else{
1518
  try{
1519
  require_once(plugin_dir_path(__FILE__) . 'legacy-core.php');
1520
  }catch(Exception $e) {
1536
  <?php
1537
 
1538
  });
1539
+ }
1540
+ }