WP Google Maps - Version 6.3.08

Version Description

  • 2016-04-14 - Medium Priority =
  • Provides a workaround for users experiencing issues with their maps loading after updating to WordPress 4.5
Download this release

Release Info

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

Code changes from version 6.3.07 to 6.3.08

Files changed (2) hide show
  1. readme.txt +3 -0
  2. wpGoogleMaps.php +52 -5
readme.txt CHANGED
@@ -206,6 +206,9 @@ Please upgrade your version of WP Google Maps to version 6.0.27 as it includes m
206
 
207
  == Changelog ==
208
 
 
 
 
209
  = 6.0.07 - 2016-04-13 - Low Priority =
210
  * Tested on WordPress 4.5
211
  * You can now use your own Google Maps API key for your maps
206
 
207
  == Changelog ==
208
 
209
+ = 6.3.08 - 2016-04-14 - Medium Priority =
210
+ * Provides a workaround for users experiencing issues with their maps loading after updating to WordPress 4.5
211
+
212
  = 6.0.07 - 2016-04-13 - Low Priority =
213
  * Tested on WordPress 4.5
214
  * You can now use your own Google Maps API key for your maps
wpGoogleMaps.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://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: 6.3.07
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  Text Domain: wp-google-maps
@@ -11,7 +11,10 @@ Domain Path: /languages
11
  */
12
 
13
  /*
14
- * 6.0.07 - 2016-04-13 - Low Priority
 
 
 
15
  * Tested on WordPress 4.5
16
  * You can now use your own Google Maps API key for your maps
17
  *
@@ -220,7 +223,7 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
220
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
221
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
222
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
223
- $wpgmza_version = "6.3.07";
224
  $wpgmza_p_version = "6.3.05";
225
  $wpgmza_t = "basic";
226
  define("WPGMAPS", $wpgmza_version);
@@ -3897,6 +3900,20 @@ function wpgmaps_menu_marker_layout() {
3897
  }
3898
 
3899
  function wpgmaps_menu_settings_layout() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3900
  if (function_exists('wpgmza_register_pro_version')) {
3901
  if (function_exists('wpgmaps_settings_page_pro')) {
3902
  wpgmaps_settings_page_pro();
@@ -4050,7 +4067,7 @@ function wpgmaps_settings_page_basic() {
4050
  $ret .= " <tr>";
4051
  $ret .= " <td width='200' valign='top'>".__("Troubleshooting Options","wp-google-maps").":</td>";
4052
  $ret .= " <td>";
4053
- $ret .= " <input name='wpgmza_settings_force_jquery' type='checkbox' id='wpgmza_settings_force_jquery' value='yes' $wpgmza_force_jquery_checked /> ".__("Over-ride current jQuery with version 1.8.3 (Tick this box if you are receiving jQuery related errors)")."<br />";
4054
  $ret .= " </td>";
4055
  $ret .= " </tr>";
4056
  $ret .= " <tr>";
@@ -4310,6 +4327,21 @@ function wpgmza_map_page() {
4310
  if (function_exists('wpgmza_register_pro_version')) {
4311
  wpgmza_stats("list_maps_pro");
4312
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")." <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">".__("Add New","wp-google-maps")."</a></h2>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4313
  wpgmaps_check_versions();
4314
  wpgmaps_list_maps();
4315
  }
@@ -4317,6 +4349,21 @@ function wpgmza_map_page() {
4317
  wpgmza_stats("list_maps_basic");
4318
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")."</h2>";
4319
  echo"<p class='wpgmza_upgrade_nag'><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_1' target=\"_BLANK\" title='".__("Pro Version","wp-google-maps")."'>".__("Create unlimited maps","wp-google-maps")."</a> ".__("with the","wp-google-maps")." <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_2' title='Pro Version' target=\"_BLANK\">".__("Pro Version","wp-google-maps")."</a> ".__("of WP Google Maps for only","wp-google-maps")." <strong>$39.99!</strong></i></p>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4320
  wpgmaps_list_maps();
4321
 
4322
 
@@ -6150,7 +6197,7 @@ function wpgmaps_load_jquery() {
6150
  if (isset($wpgmza_settings['wpgmza_settings_force_jquery'])) {
6151
  if ($wpgmza_settings['wpgmza_settings_force_jquery'] == "yes") {
6152
  wp_deregister_script('jquery');
6153
- wp_register_script('jquery', plugins_url("js/jquery.min.js",__FILE__), false, "1.8.3");
6154
  }
6155
  }
6156
  wp_enqueue_script('jquery');
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://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: 6.3.08
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  Text Domain: wp-google-maps
11
  */
12
 
13
  /*
14
+ * 6.3.08 - 2016-04-14 - Medium Priority
15
+ * Provides a workaround for users experiencing issues with their maps loading after updating to WordPress 4.5
16
+ *
17
+ * 6.3.07 - 2016-04-13 - Low Priority
18
  * Tested on WordPress 4.5
19
  * You can now use your own Google Maps API key for your maps
20
  *
223
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
224
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
225
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
226
+ $wpgmza_version = "6.3.08";
227
  $wpgmza_p_version = "6.3.05";
228
  $wpgmza_t = "basic";
229
  define("WPGMAPS", $wpgmza_version);
3900
  }
3901
 
3902
  function wpgmaps_menu_settings_layout() {
3903
+ $my_theme = wp_get_theme();
3904
+
3905
+ $name = $my_theme->get( 'Name' );
3906
+ $version = $my_theme->get( 'Version' );
3907
+ $modified_version = str_replace('.', '', $version);
3908
+
3909
+ $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
3910
+
3911
+ if( $name == 'Avada' && intval( $modified_version ) <= 393 && !isset( $wpgmza_settings['wpgmza_settings_force_jquery'] ) ){
3912
+
3913
+ echo "<div class='error'><p>".__("We have detected a conflict between your current theme's version and our plugin. Should you be experiencing issues with your maps displaying, please update Avada to version 3.9.4 or check the checkbox labelled 'Over-ride current jQuery with version 1.11.3'.", "wp-google-maps")."</p></div>";
3914
+
3915
+ }
3916
+
3917
  if (function_exists('wpgmza_register_pro_version')) {
3918
  if (function_exists('wpgmaps_settings_page_pro')) {
3919
  wpgmaps_settings_page_pro();
4067
  $ret .= " <tr>";
4068
  $ret .= " <td width='200' valign='top'>".__("Troubleshooting Options","wp-google-maps").":</td>";
4069
  $ret .= " <td>";
4070
+ $ret .= " <input name='wpgmza_settings_force_jquery' type='checkbox' id='wpgmza_settings_force_jquery' value='yes' $wpgmza_force_jquery_checked /> ".__("Over-ride current jQuery with version 1.11.3 (Tick this box if you are receiving jQuery related errors after updating to WordPress 4.5)", 'wp-google-maps')."<br />";
4071
  $ret .= " </td>";
4072
  $ret .= " </tr>";
4073
  $ret .= " <tr>";
4327
  if (function_exists('wpgmza_register_pro_version')) {
4328
  wpgmza_stats("list_maps_pro");
4329
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")." <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">".__("Add New","wp-google-maps")."</a></h2>";
4330
+
4331
+ $my_theme = wp_get_theme();
4332
+
4333
+ $name = $my_theme->get( 'Name' );
4334
+ $version = $my_theme->get( 'Version' );
4335
+ $modified_version = str_replace('.', '', $version);
4336
+
4337
+ $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
4338
+
4339
+ if( $name == 'Avada' && intval( $modified_version ) <= 393 && !isset( $wpgmza_settings['wpgmza_settings_force_jquery'] ) ){
4340
+
4341
+ echo "<div class='error'><p>".__("We have detected a conflict between your current theme's version and our plugin. Should you be experiencing issues with your maps displaying, please update Avada to version 3.9.4 or go to <a href='".admin_url('/admin.php?page=wp-google-maps-menu-settings#wpgmza_settings_force_jquery')."'>settings page</a> and check the highlighted checkbox.", "wp-google-maps")."</p></div>";
4342
+
4343
+ }
4344
+
4345
  wpgmaps_check_versions();
4346
  wpgmaps_list_maps();
4347
  }
4349
  wpgmza_stats("list_maps_basic");
4350
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")."</h2>";
4351
  echo"<p class='wpgmza_upgrade_nag'><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_1' target=\"_BLANK\" title='".__("Pro Version","wp-google-maps")."'>".__("Create unlimited maps","wp-google-maps")."</a> ".__("with the","wp-google-maps")." <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=mappage_2' title='Pro Version' target=\"_BLANK\">".__("Pro Version","wp-google-maps")."</a> ".__("of WP Google Maps for only","wp-google-maps")." <strong>$39.99!</strong></i></p>";
4352
+
4353
+ $my_theme = wp_get_theme();
4354
+
4355
+ $name = $my_theme->get( 'Name' );
4356
+ $version = $my_theme->get( 'Version' );
4357
+ $modified_version = str_replace('.', '', $version);
4358
+
4359
+ $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
4360
+
4361
+ if( $name == 'Avada' && intval( $modified_version ) <= 393 && !isset( $wpgmza_settings['wpgmza_settings_force_jquery'] ) ){
4362
+
4363
+ echo "<div class='error'><p>".__("We have detected a conflict between your current theme's version and our plugin. Should you be experiencing issues with your maps displaying, please update Avada to version 3.9.4 or go to <a href='".admin_url('/admin.php?page=wp-google-maps-menu-settings#wpgmza_settings_force_jquery')."'>settings page</a> and check the highlighted checkbox.", "wp-google-maps")."</p></div>";
4364
+
4365
+ }
4366
+
4367
  wpgmaps_list_maps();
4368
 
4369
 
6197
  if (isset($wpgmza_settings['wpgmza_settings_force_jquery'])) {
6198
  if ($wpgmza_settings['wpgmza_settings_force_jquery'] == "yes") {
6199
  wp_deregister_script('jquery');
6200
+ wp_register_script('jquery', 'http://code.jquery.com/jquery-1.11.3.min.js', false, "1.11.3");
6201
  }
6202
  }
6203
  wp_enqueue_script('jquery');