WP Google Maps - Version 7.10.23

Version Description

:- 2018-07-23 :- Medium priority = * Fixed REST API endpoint URL incorrect for installations in subfolders * Added PHP version requirement 5.3 to readme.txt

Download this release

Release Info

Developer perryrylance
Plugin Icon 128x128 WP Google Maps
Version 7.10.23
Comparing to
See all releases

Code changes from version 7.10.22 to 7.10.23

includes/class.marker.php CHANGED
@@ -25,7 +25,7 @@ class Marker extends Crud implements \JsonSerializable
25
26
public function jsonSerialize()
27
{
28
- $json = Parent::jsonSerialize();
29
30
unset($json['latlng']);
31
25
26
public function jsonSerialize()
27
{
28
+ $json = Crud::jsonSerialize();
29
30
unset($json['latlng']);
31
includes/class.plugin.php CHANGED
@@ -152,6 +152,7 @@ class Plugin
152
153
return apply_filters('wpgmza_plugin_get_localized_data', array(
154
'ajaxurl' => admin_url('admin-ajax.php'),
155
'settings' => $this->settings,
156
'localized_strings' => $strings->getLocalizedStrings(),
157
'api_consent_html' => $wpgmzaGDPRCompliance->getConsentPromptHTML(),
152
153
return apply_filters('wpgmza_plugin_get_localized_data', array(
154
'ajaxurl' => admin_url('admin-ajax.php'),
155
+ 'resturl' => get_rest_url(null, 'wpgmza/v1'),
156
'settings' => $this->settings,
157
'localized_strings' => $strings->getLocalizedStrings(),
158
'api_consent_html' => $wpgmzaGDPRCompliance->getConsentPromptHTML(),
js/v8/rest-api.js CHANGED
@@ -8,11 +8,9 @@
8
9
WPGMZA.RestAPI = function()
10
{
11
-
12
}
13
14
- WPGMZA.RestAPI.URL = "/wp-json/wpgmza/v1";
15
-
16
WPGMZA.RestAPI.createInstance = function()
17
{
18
return new WPGMZA.RestAPI();
8
9
WPGMZA.RestAPI = function()
10
{
11
+ WPGMZA.RestAPI.URL = WPGMZA.resturl;
12
}
13
14
WPGMZA.RestAPI.createInstance = function()
15
{
16
return new WPGMZA.RestAPI();
readme.txt CHANGED
@@ -4,6 +4,7 @@ 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
6
Tested up to: 4.9.6
7
Stable tag: trunk
8
License: GPLv2
9
@@ -215,6 +216,10 @@ Please upgrade your version of WP Google Maps to version 6.0.27 as it includes m
215
216
== Changelog ==
217
218
= 7.10.22 :- 2018-07-18 :- Medium priority =
219
* Added filter wpgmza_localized_strings
220
* Added beginnings for REST API
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
6
Tested up to: 4.9.6
7
+ Requires PHP: 5.3
8
Stable tag: trunk
9
License: GPLv2
10
216
217
== Changelog ==
218
219
+ = 7.10.23 :- 2018-07-23 :- Medium priority =
220
+ * Fixed REST API endpoint URL incorrect for installations in subfolders
221
+ * Added PHP version requirement 5.3 to readme.txt
222
+
223
= 7.10.22 :- 2018-07-18 :- Medium priority =
224
* Added filter wpgmza_localized_strings
225
* Added beginnings for REST API
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: 7.10.22
7
Author: WP Google Maps
8
Author URI: https://www.wpgmaps.com
9
Text Domain: wp-google-maps
@@ -11,6 +11,11 @@ Domain Path: /languages
11
*/
12
13
/*
14
* 7.10.22 :- 2018-07-18 :- Medium priority
15
* Added filter wpgmza_localized_strings
16
* Added beginnings for REST API
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: 7.10.23
7
Author: WP Google Maps
8
Author URI: https://www.wpgmaps.com
9
Text Domain: wp-google-maps
11
*/
12
13
/*
14
+ * 7.10.23 :- 2018-07-23 :- Low priority
15
+ * Fixed REST API endpoint URL incorrect for installations in subfolders
16
+ * Fixed WPGMZA\Parent not found
17
+ * Added PHP version requirement 5.3 to readme.txt
18
+ *
19
* 7.10.22 :- 2018-07-18 :- Medium priority
20
* Added filter wpgmza_localized_strings
21
* Added beginnings for REST API