Version Description
- Multisite bug fixes
- XML marker file bug fixes (thank you Endymion00)
Download this release
Release Info
Developer | WPGMaps |
Plugin | WP Google Maps |
Version | 6.0.6 |
Comparing to | |
See all releases |
Code changes from version 6.0.5 to 6.0.6
- base/assets/logan.png +0 -0
- readme.txt +4 -0
- wpGoogleMaps.php +17 -5
base/assets/logan.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -99,6 +99,10 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 6.0.5 =
|
103 |
* Markers are now stored in the uploads folder
|
104 |
* Small bug fixes
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 6.0.6 =
|
103 |
+
* Multisite bug fixes
|
104 |
+
* XML marker file bug fixes (thank you Endymion00)
|
105 |
+
|
106 |
= 6.0.5 =
|
107 |
* Markers are now stored in the uploads folder
|
108 |
* Small bug fixes
|
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.
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
10 |
|
11 |
/*
|
|
|
|
|
|
|
12 |
* 6.0.5
|
13 |
* Bug fixes
|
14 |
* All XML marker files are now kept in wp-content/uploads/wp-google-maps/
|
@@ -69,8 +72,8 @@ $wpgmza_tblname_poly = $wpdb->prefix . "wpgmza_polygon";
|
|
69 |
$wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
|
70 |
$wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
|
71 |
$wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
|
72 |
-
$wpgmza_version = "6.0.
|
73 |
-
$wpgmza_p_version = "6.0.
|
74 |
$wpgmza_t = "basic";
|
75 |
define("WPGMAPS", $wpgmza_version);
|
76 |
define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
|
@@ -113,7 +116,6 @@ function wpgmaps_activate() {
|
|
113 |
|
114 |
wpgmaps_handle_db();
|
115 |
wpgmaps_handle_directory();
|
116 |
-
//wpgmaps_update_all_xml_file();
|
117 |
|
118 |
|
119 |
$wpgmza_data = get_option("WPGMZA");
|
@@ -201,6 +203,8 @@ function wpgmaps_activate() {
|
|
201 |
$results = $wpdb->get_results("SELECT * FROM $table_name WHERE `map_id` = '1'");
|
202 |
if (!$results) { $rows_affected = $wpdb->insert( $table_name, array( 'map_id' => '1', 'address' => 'London', 'lat' => '51.5081290', 'lng' => '-0.1280050', 'pic' => '', 'link' => '', 'icon' => '', 'anim' => '', 'title' => '', 'infoopen' => '', 'description' => '') ); }
|
203 |
|
|
|
|
|
204 |
//wpgmaps_update_all_xml_file();
|
205 |
}
|
206 |
function wpgmaps_deactivate() { /* wpgmza_cURL_response("deactivate"); */ }
|
@@ -219,9 +223,16 @@ function wpgmaps_init() {
|
|
219 |
}
|
220 |
|
221 |
function wpgmaps_handle_directory() {
|
|
|
|
|
222 |
if (!file_exists(ABSPATH.'wp-content/uploads/wp-google-maps/cache')) {
|
223 |
wp_mkdir_p(ABSPATH.'wp-content/uploads/wp-google-maps/cache');
|
224 |
}
|
|
|
|
|
|
|
|
|
|
|
225 |
}
|
226 |
function wpgmaps_cache_permission_warning() {
|
227 |
echo "<div class='error below-h1'><big>";
|
@@ -315,8 +326,9 @@ function wpgmaps_get_marker_url($mapid = false) {
|
|
315 |
} else {
|
316 |
/* later versions store marker files in wp-content/uploads/wp-google-maps director */
|
317 |
if (is_multisite()) {
|
|
|
318 |
global $blog_id;
|
319 |
-
$wurl =
|
320 |
}
|
321 |
else {
|
322 |
$wurl = content_url().'/uploads/wp-google-maps/'.$mapid."markers.xml";;
|
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.6
|
7 |
Author: WP Google Maps
|
8 |
Author URI: http://www.wpgmaps.com
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
+
* 6.0.6
|
13 |
+
* Multisite bug fixes
|
14 |
+
*
|
15 |
* 6.0.5
|
16 |
* Bug fixes
|
17 |
* All XML marker files are now kept in wp-content/uploads/wp-google-maps/
|
72 |
$wpgmza_tblname_polylines = $wpdb->prefix . "wpgmza_polylines";
|
73 |
$wpgmza_tblname_categories = $wpdb->prefix. "wpgmza_categories";
|
74 |
$wpgmza_tblname_category_maps = $wpdb->prefix. "wpgmza_category_maps";
|
75 |
+
$wpgmza_version = "6.0.6";
|
76 |
+
$wpgmza_p_version = "6.0.6";
|
77 |
$wpgmza_t = "basic";
|
78 |
define("WPGMAPS", $wpgmza_version);
|
79 |
define("WPGMAPS_DIR",plugin_dir_url(__FILE__));
|
116 |
|
117 |
wpgmaps_handle_db();
|
118 |
wpgmaps_handle_directory();
|
|
|
119 |
|
120 |
|
121 |
$wpgmza_data = get_option("WPGMZA");
|
203 |
$results = $wpdb->get_results("SELECT * FROM $table_name WHERE `map_id` = '1'");
|
204 |
if (!$results) { $rows_affected = $wpdb->insert( $table_name, array( 'map_id' => '1', 'address' => 'London', 'lat' => '51.5081290', 'lng' => '-0.1280050', 'pic' => '', 'link' => '', 'icon' => '', 'anim' => '', 'title' => '', 'infoopen' => '', 'description' => '') ); }
|
205 |
|
206 |
+
wpgmaps_update_all_xml_file();
|
207 |
+
|
208 |
//wpgmaps_update_all_xml_file();
|
209 |
}
|
210 |
function wpgmaps_deactivate() { /* wpgmza_cURL_response("deactivate"); */ }
|
223 |
}
|
224 |
|
225 |
function wpgmaps_handle_directory() {
|
226 |
+
$upload_dir = wp_upload_dir();
|
227 |
+
|
228 |
if (!file_exists(ABSPATH.'wp-content/uploads/wp-google-maps/cache')) {
|
229 |
wp_mkdir_p(ABSPATH.'wp-content/uploads/wp-google-maps/cache');
|
230 |
}
|
231 |
+
if (is_multisite()) {
|
232 |
+
if (!file_exists($upload_dir['basedir'].'/wp-google-maps/cache')) {
|
233 |
+
wp_mkdir_p($upload_dir['basedir'].'/wp-google-maps/cache');
|
234 |
+
}
|
235 |
+
}
|
236 |
}
|
237 |
function wpgmaps_cache_permission_warning() {
|
238 |
echo "<div class='error below-h1'><big>";
|
326 |
} else {
|
327 |
/* later versions store marker files in wp-content/uploads/wp-google-maps director */
|
328 |
if (is_multisite()) {
|
329 |
+
$upload_dir = wp_upload_dir();
|
330 |
global $blog_id;
|
331 |
+
$wurl = $upload_dir['baseurl'].'/wp-google-maps/'.$blog_id."-".$mapid."markers.xml";;
|
332 |
}
|
333 |
else {
|
334 |
$wurl = content_url().'/uploads/wp-google-maps/'.$mapid."markers.xml";;
|