WP Google Maps - Version 6.4.08

Version Description

  • 2018-01-14 - Medium priority =
  • Update Google Maps API versions to include 3.30 and 3.31
  • On first installation, users are now taken to the welcome page
  • Updated contributors
  • Updated credits page
  • Fixed broken support links
  • Got things ready for the new Version 7 that is on its way
Download this release

Release Info

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

Code changes from version 6.4.07 to 6.4.08

base/includes/credits.php CHANGED
@@ -17,43 +17,66 @@
17
  <ul class="wp-people-group " id="wp-people-group-project-leaders">
18
 
19
  <li class="wp-person" id="wp-person-nickduncan">
20
- <a href="https://profiles.wordpress.org/nickduncan/" class="web"><img src="https://en.gravatar.com/avatar/38d79f24b5a649e132f8ed93f6dc2d37?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
21
  Nick Duncan</a>
22
  <span class="title"><?php _e("Founder &amp; Lead Developer","wp-google-maps"); ?></span>
23
  </li>
24
  </ul>
25
  <h3 class="wp-people-group"><?php _e("Contributors","wp-google-maps"); ?></h3>
26
  <ul class="wp-people-group " id="wp-people-group-core-developers">
27
- <li class="wp-person" id="wp-person-dylanauty">
28
- <a href="https://profiles.wordpress.org/dylanauty/" class="web"><img src="http://en.gravatar.com/userimage/99843032/c4b24cccc2f7bd5b23ed2d1d8b1638e4?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
29
- Dylan Auty</a>
30
- <span class="title"><?php _e("Developer","wp-google-maps"); ?></span>
31
- </li>
32
- <li class="wp-person" id="wp-person-jarrydlong">
33
- <a href="https://profiles.wordpress.org/jarryd-long/" class="web"><img src="https://en.gravatar.com/avatar/82d56ebcb216f9f146559a99e721de01?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
34
- Jarryd Long</a>
35
- <span class="title"><?php _e("Developer &amp; Support","wp-google-maps"); ?></span>
36
- </li>
37
- <li class="wp-person" id="wp-person-nathanmiller">
38
- <a href="https://profiles.wordpress.org/jarryd-long/" class="web"><img src="https://en.gravatar.com/avatar/4e0ca967af9e8c38f2924ca6003513fb?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
39
- Nathan Miller</a>
40
- <span class="title"><?php _e("Support","wp-google-maps"); ?></span>
41
- </li>
42
- <li class="wp-person" id="wp-person-andrewlima">
43
- <a href="https://profiles.wordpress.org/andrewza/" class="web"><img src="https://en.gravatar.com/avatar/dbd24c87ac41577d55fab74f8604159b?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
44
- Andrew Lima</a>
45
- <span class="title"><?php _e("Support","wp-google-maps"); ?></span>
46
- </li>
47
- <li class="wp-person" id="wp-person-tamduncan">
48
- <a href="https://twitter.com/thebossybabe" class="web"><img src="https://en.gravatar.com/avatar/57d74f7fb39d5be50ac9ef65ad003671?s=60&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
49
- Tam Duncan</a>
50
- <span class="title"><?php _e("Marketing","wp-google-maps"); ?></span>
51
- </li>
52
- <li class="wp-person" id="wp-person-gerardarall">
53
- <a href="https://github.com/arall" class="web"><img src="https://avatars1.githubusercontent.com/u/1453137?s=60" srcset="http://1.gravatar.com/avatar/76424a001dc6b3ebb4faca0c567800c4?s=120&amp;d=mm&amp;r=g 2x" class="gravatar" alt="">
54
- Gerard Arall</a>
55
- <span class="title"><?php _e("Security suggestions","wp-google-maps"); ?></span>
56
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
 
59
  <p class="clear"><?php _e("Want to see your name on this page?","wp-google-maps"); ?> <a href="https://github.com/CodeCabin/wp-google-maps/"><?php _e("Get involved on GitHub.","wp-google-maps"); ?></a></p>
17
  <ul class="wp-people-group " id="wp-people-group-project-leaders">
18
 
19
  <li class="wp-person" id="wp-person-nickduncan">
20
+ <a href="https://profiles.wordpress.org/nickduncan/" class="web"><img src="https://secure.gravatar.com/avatar/38d79f24b5a649e132f8ed93f6dc2d37?s=60&amp;d=mm&amp;r=g" srcset="https://secure.gravatar.com/avatar/38d79f24b5a649e132f8ed93f6dc2d37?s=64&d=mm&r=g 2x" class="gravatar" alt="">
21
  Nick Duncan</a>
22
  <span class="title"><?php _e("Founder &amp; Lead Developer","wp-google-maps"); ?></span>
23
  </li>
24
  </ul>
25
  <h3 class="wp-people-group"><?php _e("Contributors","wp-google-maps"); ?></h3>
26
  <ul class="wp-people-group " id="wp-people-group-core-developers">
27
+
28
+ <li class="wp-person" id="wp-person-dylanauty">
29
+ <a href="https://profiles.wordpress.org/dylanauty/" class="web"><img src="https://secure.gravatar.com/avatar/3e032ec3258ebc08eeed69568141164a?s=64&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/3e032ec3258ebc08eeed69568141164a?s=64&d=mm&r=g 2x" class="gravatar" alt="">
30
+ Dylan Auty</a>
31
+ <span class="title"><?php _e("Support &amp; Developer","wp-google-maps"); ?></span>
32
+ </li>
33
+ <li class="wp-person" id="wp-person-dylanauty">
34
+ <a href="https://github.com/orgs/CodeCabin/people/PerryRylance" class="web"><img src="https://avatars3.githubusercontent.com/u/14136738?s=96&v=4" srcset="https://avatars3.githubusercontent.com/u/14136738?s=96&v=4 2x" class="gravatar" alt="">
35
+ Perry Rylance</a>
36
+ <span class="title"><?php _e("Support &amp; Developer","wp-google-maps"); ?></span>
37
+ </li>
38
+ <li class="wp-person" id="wp-person-dylanauty">
39
+ <a href="https://github.com/JarekCodeCabin" class="web"><img src="https://avatars3.githubusercontent.com/u/25925938?s=460&v=4" srcset="https://avatars3.githubusercontent.com/u/25925938?s=460&v=4 2x" class="gravatar" alt="">
40
+ Jarek Kacprzak</a>
41
+ <span class="title"><?php _e("Support &amp; Developer","wp-google-maps"); ?></span>
42
+ </li>
43
+
44
+ <li class="wp-person" id="wp-person-nathanmiller">
45
+ <a href="https://profiles.wordpress.org/jarryd-long/" class="web"><img src="https://ca.slack-edge.com/T0CCUAUDD-U0CDJ724Q-g4e0ca967af9-1024" srcset="https://ca.slack-edge.com/T0CCUAUDD-U0CDJ724Q-g4e0ca967af9-1024 2x" class="gravatar" alt="">
46
+ Nathan Miller</a>
47
+ <span class="title"><?php _e("Support","wp-google-maps"); ?></span>
48
+ </li>
49
+
50
+ <li class="wp-person" id="wp-person-tamduncan">
51
+ <a href="https://twitter.com/thebossybabe" class="web"><img src="https://pbs.twimg.com/profile_images/378800000229252467/623181616d530dc6e8088939814b0f5d_400x400.jpeg" srcset="https://pbs.twimg.com/profile_images/378800000229252467/623181616d530dc6e8088939814b0f5d_400x400.jpeg 2x" class="gravatar" alt="">
52
+ Tam Duncan</a>
53
+ <span class="title"><?php _e("Marketing","wp-google-maps"); ?></span>
54
+ </li>
55
+ <li class="wp-person" id="wp-person-tamduncan">
56
+ <a href="https://github.com/orgs/CodeCabin/people/dylank6169" class="web"><img src="https://avatars3.githubusercontent.com/u/25743655?s=96&v=4" srcset="https://avatars3.githubusercontent.com/u/25743655?s=96&v=4 2x" class="gravatar" alt="">
57
+ Dylan Kotzé</a>
58
+ <span class="title"><?php _e("Support &amp; Developer","wp-google-maps"); ?></span>
59
+ </li>
60
+
61
+
62
+ <li class="wp-person" id="wp-person-andrewlima">
63
+ <a href="https://github.com/orgs/CodeCabin/people/VeroniqueSmit" class="web"><img src="https://avatars1.githubusercontent.com/u/22832458?s=96&v=4" class="gravatar" alt="">
64
+ Veronique Smit</a>
65
+ <span class="title"><?php _e("Support","wp-google-maps"); ?></span>
66
+ </li>
67
+
68
+ <li class="wp-person" id="wp-person-andrewlima">
69
+ <a href="https://github.com/patdumond" class="web"><img src="https://avatars3.githubusercontent.com/u/9320495?s=460&v=4" class="gravatar" alt="">
70
+ Pat Dumond</a>
71
+ <span class="title"><?php _e("Documentation","wp-google-maps"); ?></span>
72
+ </li>
73
+
74
+
75
+ <li class="wp-person" id="wp-person-gerardarall">
76
+ <a href="https://github.com/arall" class="web"><img src="https://avatars2.githubusercontent.com/u/1453137?s=60&v=4" srcset="https://avatars2.githubusercontent.com/u/1453137?s=60&v=4 2x" class="gravatar" alt="">
77
+ Gerard Arall</a>
78
+ <span class="title"><?php _e("Security suggestions","wp-google-maps"); ?></span>
79
+ </li>
80
 
81
 
82
  <p class="clear"><?php _e("Want to see your name on this page?","wp-google-maps"); ?> <a href="https://github.com/CodeCabin/wp-google-maps/"><?php _e("Get involved on GitHub.","wp-google-maps"); ?></a></p>
base/includes/welcome.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php global $wpgmza_global_array; ?>
2
  <div class="wrap about-wrap">
3
  <p>&nbsp;</p>
4
- <h1><?php _e("Welcome to WP Google Maps version 6.3","wp-google-maps"); ?></h1>
5
 
6
  <div class="about-text"><?php _e("Build amazing maps through a simple interface and powerful functionality along with world class support.","wp-google-maps"); ?></div>
7
 
1
  <?php global $wpgmza_global_array; ?>
2
  <div class="wrap about-wrap">
3
  <p>&nbsp;</p>
4
+ <h1><?php echo sprintf( __( "Welcome to WP Google Maps version %s","wp-google-maps"), "6.4" ); ?></h1>
5
 
6
  <div class="about-text"><?php _e("Build amazing maps through a simple interface and powerful functionality along with world class support.","wp-google-maps"); ?></div>
7
 
js/wp-google-maps.js CHANGED
@@ -588,7 +588,7 @@ function searchLocations(map_id) {
588
 
589
 
590
  if (typeof wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict'] !== "undefined" && wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict'] != "") {
591
- if ((wpgm_lat.match(/[a-zA-Z]/g) === null && wpgm_lng.match(/[a-zA-Z]/g) === null) && checker.length === 2 && (checker1 != NaN && (checker1 <= 90 || checker1 >= -90)) && (checker2 != NaN && (checker2 <= 90 || checker2 >= -90))) {
592
  var point = new google.maps.LatLng(parseFloat(wpgm_lat),parseFloat(wpgm_lng));
593
  searchLocationsNear(map_id,point);
594
  }
588
 
589
 
590
  if (typeof wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict'] !== "undefined" && wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict'] != "") {
591
+ if ((typeof wpgm_lng !== "undefined" && wpgm_lat.match(/[a-zA-Z]/g) === null && wpgm_lng.match(/[a-zA-Z]/g) === null) && checker.length === 2 && (checker1 != NaN && (checker1 <= 90 || checker1 >= -90)) && (checker2 != NaN && (checker2 <= 90 || checker2 >= -90))) {
592
  var point = new google.maps.LatLng(parseFloat(wpgm_lat),parseFloat(wpgm_lng));
593
  searchLocationsNear(map_id,point);
594
  }
lib/codecabin/deactivate-feedback-form.php CHANGED
@@ -1,20 +1,9 @@
1
  <?php
2
 
3
- namespace codecabin;
4
 
5
- if(!is_admin())
6
- return;
7
 
8
- global $pagenow;
9
-
10
- if($pagenow != "plugins.php")
11
- return;
12
-
13
- if(defined('CODECABIN_DEACTIVATE_FEEDBACK_FORM_INCLUDED'))
14
- return;
15
- define('CODECABIN_DEACTIVATE_FEEDBACK_FORM_INCLUDED', true);
16
-
17
- add_action('admin_enqueue_scripts', function() {
18
 
19
  // Enqueue scripts
20
  wp_enqueue_script('remodal', plugin_dir_url(__FILE__) . 'remodal.min.js');
@@ -54,14 +43,13 @@ add_action('admin_enqueue_scripts', function() {
54
  'other' => __('Other', 'codecabin')
55
  );
56
 
57
- foreach($plugins as $plugin)
58
- {
59
  $plugin->reasons = apply_filters('codecabin_deactivate_feedback_form_reasons', $defaultReasons, $plugin);
60
  }
61
 
62
  // Send plugin data
63
  wp_localize_script('codecabin-deactivate-feedback-form', 'codecabin_deactivate_feedback_form_plugins', $plugins);
64
- });
65
 
66
  /**
67
  * Hook for adding plugins, pass an array of objects in the following format:
@@ -69,7 +57,8 @@ add_action('admin_enqueue_scripts', function() {
69
  * 'version' => 'plugin-version'
70
  * @return array The plugins in the format described above
71
  */
72
- add_filter('codecabin_deactivate_feedback_form_plugins', function($plugins) {
 
73
  return $plugins;
74
- });
75
 
1
  <?php
2
 
 
3
 
4
+ add_action('admin_enqueue_scripts', 'wpgmaps_deactivation_survey' );
 
5
 
6
+ function wpgmaps_deactivation_survey() {
 
 
 
 
 
 
 
 
 
7
 
8
  // Enqueue scripts
9
  wp_enqueue_script('remodal', plugin_dir_url(__FILE__) . 'remodal.min.js');
43
  'other' => __('Other', 'codecabin')
44
  );
45
 
46
+ foreach($plugins as $plugin) {
 
47
  $plugin->reasons = apply_filters('codecabin_deactivate_feedback_form_reasons', $defaultReasons, $plugin);
48
  }
49
 
50
  // Send plugin data
51
  wp_localize_script('codecabin-deactivate-feedback-form', 'codecabin_deactivate_feedback_form_plugins', $plugins);
52
+ }
53
 
54
  /**
55
  * Hook for adding plugins, pass an array of objects in the following format:
57
  * 'version' => 'plugin-version'
58
  * @return array The plugins in the format described above
59
  */
60
+ add_filter('codecabin_deactivate_feedback_form_plugins', 'wpgmaps_deactivation_form_feedback_form_plugins' );
61
+ function wpgmaps_deactivation_form_feedback_form_plugins( $plugins ) {
62
  return $plugins;
63
+ }
64
 
readme.txt CHANGED
@@ -1,5 +1,5 @@
1
  === WP Google Maps ===
2
- Contributors: WPGMaps, NickDuncan, CodeCabin_, Jarryd Long, DylanAuty
3
  Donate link: http://www.wpgmaps.com
4
  Tags: google maps, maps, map, map markers, google map, google maps plugin, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
5
  Requires at least: 3.5
@@ -214,6 +214,14 @@ Please upgrade your version of WP Google Maps to version 6.0.27 as it includes m
214
 
215
  == Changelog ==
216
 
 
 
 
 
 
 
 
 
217
  = 6.4.07 - 2018-01-08 - Low priority =
218
  * Added a deactivation survey to gain insight before moving to Version 7
219
  * Tested on WP 4.9.1
1
  === WP Google Maps ===
2
+ Contributors: WPGMaps, NickDuncan, CodeCabin_, DylanAuty
3
  Donate link: http://www.wpgmaps.com
4
  Tags: google maps, maps, map, map markers, google map, google maps plugin, wp google maps, wp google map, map plugin, directions, google map plugin, map widget
5
  Requires at least: 3.5
214
 
215
  == Changelog ==
216
 
217
+ = 6.4.08 - 2018-01-14 - Medium priority =
218
+ * Update Google Maps API versions to include 3.30 and 3.31
219
+ * On first installation, users are now taken to the welcome page
220
+ * Updated contributors
221
+ * Updated credits page
222
+ * Fixed broken support links
223
+ * Got things ready for the new Version 7 that is on its way
224
+
225
  = 6.4.07 - 2018-01-08 - Low priority =
226
  * Added a deactivation survey to gain insight before moving to Version 7
227
  * Tested on WP 4.9.1
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: 6.4.07
7
  Author: WP Google Maps
8
  Author URI: https://www.wpgmaps.com
9
  Text Domain: wp-google-maps
@@ -11,6 +11,15 @@ Domain Path: /languages
11
  */
12
 
13
  /*
 
 
 
 
 
 
 
 
 
14
  * 6.4.07 - 2018-01-08 - Low priority
15
  * Added a deactivation survey to gain insight before moving to Version 7
16
  * Tested on WP 4.9.1
@@ -337,8 +346,8 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
337
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
338
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
339
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
340
- $wpgmza_version = "6.4.07";
341
- $wpgmza_p_version = "6.13";
342
  $wpgmza_t = "basic";
343
  define("WPGMAPS", $wpgmza_version);
344
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
@@ -350,7 +359,8 @@ include ( "base/includes/deprecated.php" );
350
 
351
  /* plugin deactivation checks */
352
  include ( "lib/codecabin/deactivate-feedback-form.php" );
353
- add_filter('codecabin_deactivate_feedback_form_plugins', function($plugins) {
 
354
  global $wpgmza_version;
355
  $plugins[] = (object)array(
356
  'slug' => 'wp-google-maps',
@@ -358,7 +368,7 @@ add_filter('codecabin_deactivate_feedback_form_plugins', function($plugins) {
358
  );
359
 
360
  return $plugins;
361
- });
362
 
363
 
364
 
@@ -508,6 +518,28 @@ function wpgmaps_activate() {
508
 
509
  add_option("wpgmaps_current_version",$wpgmza_version);
510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  }
512
 
513
  /**
@@ -615,8 +647,8 @@ function wpgmaps_init() {
615
  if (!isset($current_version) || $current_version != $wpgmza_version) {
616
 
617
  $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
618
- if (isset($wpgmza_settings['wpgmza_api_version']) && ($wpgmza_settings['wpgmza_api_version'] == "3.14" || $wpgmza_settings['wpgmza_api_version'] == "3.15" || $wpgmza_settings['wpgmza_api_version'] == "3.23" || $wpgmza_settings['wpgmza_api_version'] == "3.24")) {
619
- $wpgmza_settings['wpgmza_api_version'] = "3.26";
620
  }
621
  update_option("WPGMZA_OTHER_SETTINGS",$wpgmza_settings);
622
 
@@ -3762,8 +3794,8 @@ function wpgmaps_settings_page_basic() {
3762
  $wpgmza_api_version_selected[1] = "";
3763
  $wpgmza_api_version_selected[2] = "";
3764
 
3765
- if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.25") { $wpgmza_api_version_selected[0] = "selected"; }
3766
- else if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.26") { $wpgmza_api_version_selected[1] = "selected"; }
3767
  else if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.exp") { $wpgmza_api_version_selected[2] = "selected"; }
3768
  else { $wpgmza_api_version_selected[0] = "selected"; }
3769
 
@@ -3918,8 +3950,8 @@ function wpgmaps_settings_page_basic() {
3918
  $ret .= " <td width='200' valign='top'>".__("Use Google Maps API","wp-google-maps").":</td>";
3919
  $ret .= " <td>";
3920
  $ret .= " <select id='wpgmza_api_version' name='wpgmza_api_version' >";
3921
- $ret .= " <option value=\"3.25\" ".$wpgmza_api_version_selected[0].">3.25</option>";
3922
- $ret .= " <option value=\"3.26\" ".$wpgmza_api_version_selected[1].">3.26</option>";
3923
  $ret .= " <option value=\"3.exp\" ".$wpgmza_api_version_selected[2].">3.exp</option>";
3924
 
3925
  $ret .= " </select> ";
@@ -5127,8 +5159,8 @@ function wpgmza_basic_menu() {
5127
  <br /><a href=\"".wpgm_pro_link("https://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=upgradenow")."\" target=\"_BLANK\" title=\"Upgrade now for only $39.99 once off\" class=\"button-primary\" style=\"font-size:20px; display:block; width:220px; text-align:center; height:42px; line-height:41px;\">Upgrade Now</a>
5128
  <br /><br />
5129
  <a href=\"".wpgm_pro_link("https://www.wpgmaps.com/demo/")."\" target=\"_BLANK\">View the demos</a>.<br /><br />
5130
- Have a sales question? Contact either Nick or Jarryd on <a href=\"mailto:nick@wpgmaps.com\">nick@wpgmaps.com</a> or use our <a href=\"http://www.wpgmaps.com/contact-us/\" target=\"_BLANK\">contact form</a>. <br /><br />
5131
- Need help? <a href=\"http://www.wpgmaps.com/forums/forum/support-forum/\" target=\"_BLANK\">Ask a question on our support forum</a>.
5132
 
5133
 
5134
 
@@ -5774,6 +5806,7 @@ if (function_exists('wpgmza_register_pro_version')) {
5774
 
5775
  global $wpgmza_pro_version;
5776
  $wpgmza_float_version = floatval( $wpgmza_pro_version );
 
5777
 
5778
  if( $wpgmza_float_version <= 6.07 ){
5779
  add_action('wp_footer', 'wpgmaps_user_javascript_pro');
@@ -6299,7 +6332,7 @@ function wpgmza_basic_support_menu() {
6299
  <hr />
6300
  <p><?php _e("Still need help? Use one of these links below.","wp-google-maps"); ?></p>
6301
  <ul>
6302
- <li><a href='https://www.wpgmaps.com/forums/forum/support-forum/' target='_BLANK' title='<?php _e("Support forum","wp-google-maps"); ?>'><?php _e("Support forum","wp-google-maps"); ?></a></li>
6303
  <li><a href='https://www.wpgmaps.com/contact-us/' target='_BLANK' title='<?php _e("Contact us","wp-google-maps"); ?>'><?php _e("Contact us","wp-google-maps"); ?></a></li>
6304
  </ul>
6305
  </div>
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: 6.4.08
7
  Author: WP Google Maps
8
  Author URI: https://www.wpgmaps.com
9
  Text Domain: wp-google-maps
11
  */
12
 
13
  /*
14
+ *
15
+ * 6.4.08 - 2018-01-14 - Medium priority
16
+ * Update Google Maps API versions to include 3.30 and 3.31
17
+ * On first installation, users are now taken to the welcome page
18
+ * Updated contributors
19
+ * Updated credits page
20
+ * Fixed broken support links
21
+ * Got things ready for the new Version 7 that is on its way
22
+ *
23
  * 6.4.07 - 2018-01-08 - Low priority
24
  * Added a deactivation survey to gain insight before moving to Version 7
25
  * Tested on WP 4.9.1
346
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
347
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
348
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
349
+ $wpgmza_version = "6.4.08";
350
+ $wpgmza_p_version = "6.19";
351
  $wpgmza_t = "basic";
352
  define("WPGMAPS", $wpgmza_version);
353
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
359
 
360
  /* plugin deactivation checks */
361
  include ( "lib/codecabin/deactivate-feedback-form.php" );
362
+ add_filter( 'codecabin_deactivate_feedback_form_plugins', 'wpgmaps_deactivation_survey_t' );
363
+ function wpgmaps_deactivation_survey_t( $plugins ) {
364
  global $wpgmza_version;
365
  $plugins[] = (object)array(
366
  'slug' => 'wp-google-maps',
368
  );
369
 
370
  return $plugins;
371
+ }
372
 
373
 
374
 
518
 
519
  add_option("wpgmaps_current_version",$wpgmza_version);
520
 
521
+
522
+
523
+ }
524
+
525
+ add_action( "activated_plugin", "wpgmza_redirect_on_activate" );
526
+ /**
527
+ * Redirect the user to the welcome page on plugin activate
528
+ * @param string $plugin
529
+ * @return void
530
+ */
531
+ function wpgmza_redirect_on_activate( $plugin ) {
532
+ if( $plugin == plugin_basename( __FILE__ ) ) {
533
+ if ( !get_option( "WPGM_V6_FIRST_TIME" ) ) {
534
+ update_option( "WPGM_V6_FIRST_TIME", true );
535
+ // clean the output header and redirect the user
536
+ @ob_flush();
537
+ @ob_end_flush();
538
+ @ob_end_clean();
539
+
540
+ exit( wp_redirect( admin_url( 'admin.php?page=wp-google-maps-menu&action=welcome_page' ) ) );
541
+ }
542
+ }
543
  }
544
 
545
  /**
647
  if (!isset($current_version) || $current_version != $wpgmza_version) {
648
 
649
  $wpgmza_settings = get_option("WPGMZA_OTHER_SETTINGS");
650
+ if (isset($wpgmza_settings['wpgmza_api_version']) && ($wpgmza_settings['wpgmza_api_version'] == "3.14" || $wpgmza_settings['wpgmza_api_version'] == "3.15" || $wpgmza_settings['wpgmza_api_version'] == "3.23" || $wpgmza_settings['wpgmza_api_version'] == "3.24" || $wpgmza_settings['wpgmza_api_version'] == "3.25" || $wpgmza_settings['wpgmza_api_version'] == "3.26")) {
651
+ $wpgmza_settings['wpgmza_api_version'] = "3.31";
652
  }
653
  update_option("WPGMZA_OTHER_SETTINGS",$wpgmza_settings);
654
 
3794
  $wpgmza_api_version_selected[1] = "";
3795
  $wpgmza_api_version_selected[2] = "";
3796
 
3797
+ if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.30") { $wpgmza_api_version_selected[0] = "selected"; }
3798
+ else if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.31") { $wpgmza_api_version_selected[1] = "selected"; }
3799
  else if (isset($wpgmza_api_version) && $wpgmza_api_version == "3.exp") { $wpgmza_api_version_selected[2] = "selected"; }
3800
  else { $wpgmza_api_version_selected[0] = "selected"; }
3801
 
3950
  $ret .= " <td width='200' valign='top'>".__("Use Google Maps API","wp-google-maps").":</td>";
3951
  $ret .= " <td>";
3952
  $ret .= " <select id='wpgmza_api_version' name='wpgmza_api_version' >";
3953
+ $ret .= " <option value=\"3.30\" ".$wpgmza_api_version_selected[0].">3.30</option>";
3954
+ $ret .= " <option value=\"3.31\" ".$wpgmza_api_version_selected[1].">3.31</option>";
3955
  $ret .= " <option value=\"3.exp\" ".$wpgmza_api_version_selected[2].">3.exp</option>";
3956
 
3957
  $ret .= " </select> ";
5159
  <br /><a href=\"".wpgm_pro_link("https://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=upgradenow")."\" target=\"_BLANK\" title=\"Upgrade now for only $39.99 once off\" class=\"button-primary\" style=\"font-size:20px; display:block; width:220px; text-align:center; height:42px; line-height:41px;\">Upgrade Now</a>
5160
  <br /><br />
5161
  <a href=\"".wpgm_pro_link("https://www.wpgmaps.com/demo/")."\" target=\"_BLANK\">View the demos</a>.<br /><br />
5162
+ Have a sales question? Contact either Nick on <a href=\"mailto:nick@wpgmaps.com\">nick@wpgmaps.com</a> or use our <a href=\"http://www.wpgmaps.com/contact-us/\" target=\"_BLANK\">contact form</a>. <br /><br />
5163
+ Need help? <a href=\"https://www.wpgmaps.com/forums/\" target=\"_BLANK\">Ask a question on our support forum</a>.
5164
 
5165
 
5166
 
5806
 
5807
  global $wpgmza_pro_version;
5808
  $wpgmza_float_version = floatval( $wpgmza_pro_version );
5809
+
5810
 
5811
  if( $wpgmza_float_version <= 6.07 ){
5812
  add_action('wp_footer', 'wpgmaps_user_javascript_pro');
6332
  <hr />
6333
  <p><?php _e("Still need help? Use one of these links below.","wp-google-maps"); ?></p>
6334
  <ul>
6335
+ <li><a href='https://www.wpgmaps.com/forums/' target='_BLANK' title='<?php _e("Support forum","wp-google-maps"); ?>'><?php _e("Support forum","wp-google-maps"); ?></a></li>
6336
  <li><a href='https://www.wpgmaps.com/contact-us/' target='_BLANK' title='<?php _e("Contact us","wp-google-maps"); ?>'><?php _e("Contact us","wp-google-maps"); ?></a></li>
6337
  </ul>
6338
  </div>