WP Google Maps - Version 6.0.4

Version Description

  • Performance update
Download this release

Release Info

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

Code changes from version 6.0.3 to 6.0.4

Files changed (2) hide show
  1. readme.txt +12 -4
  2. wpGoogleMaps.php +30 -6
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: WPGMaps
3
  Donate link: http://www.wpgmaps.com
4
  Tags: google maps, maps, map, map markers, google, google map, wp maps, wp google maps, wp google map, easy map, store locator, map plugin, directions, map directions, google map plugin, polygons, polylines, streetview, location, marker, latitude, longitude
5
- Requires at least: 3.4
6
  Tested up to: 3.8.1
7
  Stable tag: trunk
8
  License: GPLv2
@@ -13,7 +13,7 @@ The easiest to use Google maps plugin! Create custom maps with high quality mark
13
 
14
  The easiest to use Google maps plugin! Add your customized Google map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss. No iFrames and super easy to use! Perfect for contact pages, coverage maps and any other use you can think of!
15
 
16
- While the free version allows you to create a Google map with as many markers as you like, the Pro version allows you to do so much more!
17
 
18
  The [WP Google Maps Pro Version](http://www.wpgmaps.com/purchase-professional-version/) version allows you create custom Google maps with high quality markers containing locations, descriptions, images, categories, links and directions.
19
 
@@ -21,8 +21,8 @@ The [WP Google Maps Pro Version](http://www.wpgmaps.com/purchase-professional-ve
21
  * Super easy to use, no coding required!
22
  * Create as many map markers as you need by simply typing in the address
23
  * Responsive maps
24
- * Edit your markers with the click of a button
25
- * Drag markers to an exact location
26
  * Google Maps Streetview supported
27
  * UTF-8 character support
28
  * Map can be included as a widget
@@ -51,6 +51,11 @@ The [WP Google Maps Pro Version](http://www.wpgmaps.com/purchase-professional-ve
51
  * Get the [WP Google Maps Professional Edition](http://www.wpgmaps.com/purchase-professional-version/) for only $14.99
52
  * Coming soon: WP Google Map Store Locator add-on!
53
 
 
 
 
 
 
54
  == Installation ==
55
 
56
  1. Once activated, click the "WP Google Maps" link under your settings tabs.
@@ -94,6 +99,9 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
94
 
95
  == Changelog ==
96
 
 
 
 
97
  = 6.0.3 =
98
  * Small bug fix
99
 
2
  Contributors: WPGMaps
3
  Donate link: http://www.wpgmaps.com
4
  Tags: google maps, maps, map, map markers, google, google map, wp maps, wp google maps, wp google map, easy map, store locator, map plugin, directions, map directions, google map plugin, polygons, polylines, streetview, location, marker, latitude, longitude
5
+ Requires at least: 3.5
6
  Tested up to: 3.8.1
7
  Stable tag: trunk
8
  License: GPLv2
13
 
14
  The easiest to use Google maps plugin! Add your customized Google map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss. No iFrames and super easy to use! Perfect for contact pages, coverage maps and any other use you can think of!
15
 
16
+ While the free version of WP Google Maps allows you to create a Google map with as many markers as you like, the Pro version allows you to do so much more!
17
 
18
  The [WP Google Maps Pro Version](http://www.wpgmaps.com/purchase-professional-version/) version allows you create custom Google maps with high quality markers containing locations, descriptions, images, categories, links and directions.
19
 
21
  * Super easy to use, no coding required!
22
  * Create as many map markers as you need by simply typing in the address
23
  * Responsive maps
24
+ * Edit your map markers with the click of a button
25
+ * Drag map markers to an exact location
26
  * Google Maps Streetview supported
27
  * UTF-8 character support
28
  * Map can be included as a widget
51
  * Get the [WP Google Maps Professional Edition](http://www.wpgmaps.com/purchase-professional-version/) for only $14.99
52
  * Coming soon: WP Google Map Store Locator add-on!
53
 
54
+ = Coming Soon =
55
+ * Weather layer
56
+ * Transit layer
57
+ * Panoramio layer
58
+
59
  == Installation ==
60
 
61
  1. Once activated, click the "WP Google Maps" link under your settings tabs.
99
 
100
  == Changelog ==
101
 
102
+ = 6.0.4 =
103
+ * Performance update
104
+
105
  = 6.0.3 =
106
  * Small bug fix
107
 
wpGoogleMaps.php CHANGED
@@ -3,12 +3,15 @@
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.0.3
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
10
 
11
  /*
 
 
 
12
  * 6.0.3
13
  * Small bug fix
14
  *
@@ -61,8 +64,8 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
61
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
62
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
63
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
64
- $wpgmza_version = "6.0.3";
65
- $wpgmza_p_version = "6.0.3";
66
  $wpgmza_t = "basic";
67
  define("WPGMAPS", $wpgmza_version);
68
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
@@ -104,7 +107,7 @@ function wpgmaps_activate() {
104
  delete_option("WPGMZA");
105
 
106
  wpgmaps_handle_db();
107
- wpgmaps_update_all_xml_file();
108
 
109
 
110
  $wpgmza_data = get_option("WPGMZA");
@@ -1495,7 +1498,6 @@ function wpgmaps_update_xml_file($mapid = false) {
1495
 
1496
  function wpgmaps_update_all_xml_file() {
1497
  global $wpdb;
1498
-
1499
  $table_name = $wpdb->prefix . "wpgmza_maps";
1500
  $results = $wpdb->get_results("SELECT `id` FROM $table_name WHERE `active` = 0");
1501
 
@@ -1596,6 +1598,8 @@ function wpgmaps_tag_basic( $atts ) {
1596
  //$wpgmza_data = get_option('WPGMZA');
1597
  $map_align = $res->alignment;
1598
 
 
 
1599
 
1600
  $map_width_type = stripslashes($res->map_width_type);
1601
  $map_height_type = stripslashes($res->map_height_type);
@@ -1632,6 +1636,26 @@ function wpgmaps_tag_basic( $atts ) {
1632
  ";
1633
  return $ret_msg;
1634
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1635
  function wpgmaps_sl_user_output_basic($map_id) {
1636
  $map_settings = wpgmza_get_map_data($map_id);
1637
 
@@ -3763,7 +3787,7 @@ function wpgmaps_update_db_check() {
3763
  }
3764
 
3765
  //create all XML files
3766
- wpgmaps_update_all_xml_file();
3767
  }
3768
 
3769
 
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.0.4
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
10
 
11
  /*
12
+ * 6.0.4
13
+ * Performance improvements
14
+ *
15
  * 6.0.3
16
  * Small bug fix
17
  *
64
  $wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
65
  $wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
66
  $wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
67
+ $wpgmza_version = "6.0.4";
68
+ $wpgmza_p_version = "6.0.4";
69
  $wpgmza_t = "basic";
70
  define("WPGMAPS", $wpgmza_version);
71
  define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
107
  delete_option("WPGMZA");
108
 
109
  wpgmaps_handle_db();
110
+ //wpgmaps_update_all_xml_file();
111
 
112
 
113
  $wpgmza_data = get_option("WPGMZA");
1498
 
1499
  function wpgmaps_update_all_xml_file() {
1500
  global $wpdb;
 
1501
  $table_name = $wpdb->prefix . "wpgmza_maps";
1502
  $results = $wpdb->get_results("SELECT `id` FROM $table_name WHERE `active` = 0");
1503
 
1598
  //$wpgmza_data = get_option('WPGMZA');
1599
  $map_align = $res->alignment;
1600
 
1601
+
1602
+ wpgmza_check_if_marker_file_exists($wpgmza_current_map_id);
1603
 
1604
  $map_width_type = stripslashes($res->map_width_type);
1605
  $map_height_type = stripslashes($res->map_height_type);
1636
  ";
1637
  return $ret_msg;
1638
  }
1639
+ function wpgmza_check_if_marker_file_exists($mapid) {
1640
+
1641
+ if (is_multisite()) {
1642
+ global $blog_id;
1643
+ if (file_exists(WP_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/'.$blog_id.'-'.$mapid.'markers.xml')) {
1644
+ /* all OK */
1645
+ } else {
1646
+ wpgmaps_update_xml_file($mapid);
1647
+
1648
+ }
1649
+ }
1650
+ else {
1651
+ // PREVIOUS VERSION HANDLING
1652
+ if (file_exists(WP_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/'.$mapid.'markers.xml')) {
1653
+
1654
+ } else {
1655
+ wpgmaps_update_xml_file($mapid);
1656
+ }
1657
+ }
1658
+ }
1659
  function wpgmaps_sl_user_output_basic($map_id) {
1660
  $map_settings = wpgmza_get_map_data($map_id);
1661
 
3787
  }
3788
 
3789
  //create all XML files
3790
+ //wpgmaps_update_all_xml_file();
3791
  }
3792
 
3793