Version Description
- Fixed: syntax error in API for old versions of PHP (<7.3)
Download this release
Release Info
Developer | chrisvrichardson |
Plugin | MapPress Easy Google Maps |
Version | 2.83.11 |
Comparing to | |
See all releases |
Code changes from version 2.83.10 to 2.83.11
- languages/mappress-google-maps-for-wordpress.pot +11 -11
- mappress.php +2 -2
- mappress_api.php +9 -9
- mappress_map.php +1 -0
- readme.txt +4 -1
languages/mappress-google-maps-for-wordpress.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the MapPress Maps for WordPress plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MapPress Maps for WordPress 2.83.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-08-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
|
@@ -204,13 +204,13 @@ msgstr ""
|
|
204 |
msgid "Version"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: mappress_api.php:
|
208 |
-
#: mappress_map.php:
|
209 |
msgid "Copy of %s"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: mappress_api.php:
|
213 |
-
#: mappress_map.php:
|
214 |
#: build/index_mappress_admin.js:1
|
215 |
msgid "Untitled"
|
216 |
msgstr ""
|
@@ -220,7 +220,7 @@ msgid "Success! Upgrade complete."
|
|
220 |
msgstr ""
|
221 |
|
222 |
#: mappress_db.php:148
|
223 |
-
#: mappress_map.php:
|
224 |
#: mappress_settings.php:513
|
225 |
#: mappress_settings.php:544
|
226 |
#: build/index_mappress_admin.js:1
|
@@ -243,19 +243,19 @@ msgstr ""
|
|
243 |
msgid "Your map data is up to date."
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: mappress_map.php:
|
247 |
msgid "Map not found"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: mappress_map.php:
|
251 |
msgid "Post not found"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: mappress_map.php:
|
255 |
msgid "Geocoding error: %s"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: mappress_map.php:
|
259 |
msgid "Location"
|
260 |
msgstr ""
|
261 |
|
2 |
# This file is distributed under the same license as the MapPress Maps for WordPress plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MapPress Maps for WordPress 2.83.11\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-08-11T15:01:07+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
|
204 |
msgid "Version"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: mappress_api.php:68
|
208 |
+
#: mappress_map.php:403
|
209 |
msgid "Copy of %s"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: mappress_api.php:68
|
213 |
+
#: mappress_map.php:402
|
214 |
#: build/index_mappress_admin.js:1
|
215 |
msgid "Untitled"
|
216 |
msgstr ""
|
220 |
msgstr ""
|
221 |
|
222 |
#: mappress_db.php:148
|
223 |
+
#: mappress_map.php:507
|
224 |
#: mappress_settings.php:513
|
225 |
#: mappress_settings.php:544
|
226 |
#: build/index_mappress_admin.js:1
|
243 |
msgid "Your map data is up to date."
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: mappress_map.php:146
|
247 |
msgid "Map not found"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: mappress_map.php:160
|
251 |
msgid "Post not found"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: mappress_map.php:377
|
255 |
msgid "Geocoding error: %s"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: mappress_map.php:383
|
259 |
msgid "Location"
|
260 |
msgstr ""
|
261 |
|
mappress.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
|
|
4 |
Plugin URI: https://www.mappresspro.com
|
5 |
Author URI: https://www.mappresspro.com
|
6 |
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
|
7 |
-
Version: 2.83.
|
8 |
Author: Chris Richardson
|
9 |
Text Domain: mappress-google-maps-for-wordpress
|
10 |
Thanks to all the translators and to Scott DeJonge for his wonderful icons
|
@@ -39,7 +39,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
|
|
39 |
}
|
40 |
|
41 |
class Mappress {
|
42 |
-
const VERSION = '2.83.
|
43 |
|
44 |
static
|
45 |
$api,
|
4 |
Plugin URI: https://www.mappresspro.com
|
5 |
Author URI: https://www.mappresspro.com
|
6 |
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
|
7 |
+
Version: 2.83.11
|
8 |
Author: Chris Richardson
|
9 |
Text Domain: mappress-google-maps-for-wordpress
|
10 |
Thanks to all the translators and to Scott DeJonge for his wonderful icons
|
39 |
}
|
40 |
|
41 |
class Mappress {
|
42 |
+
const VERSION = '2.83.11';
|
43 |
|
44 |
static
|
45 |
$api,
|
mappress_api.php
CHANGED
@@ -53,6 +53,7 @@ class Mappress_Api {
|
|
53 |
ob_start();
|
54 |
|
55 |
$mapid = $request->get_param('mapid');
|
|
|
56 |
|
57 |
if (!$mapid)
|
58 |
return new WP_Error('map_clone', 'Missing map ID');
|
@@ -62,14 +63,13 @@ class Mappress_Api {
|
|
62 |
return new WP_Error('map_clone', 'Original map not found');
|
63 |
|
64 |
$map->mapid = null;
|
65 |
-
$map->metaKey = null;
|
66 |
-
$map->oid = 0; //
|
67 |
$map->title = sprintf(__('Copy of %s', 'mappress-google-maps-for-wordpress'), (($map->title) ? $map->title : __('Untitled', 'mappress-google-maps-for-wordpress')));
|
68 |
|
69 |
$result = $map->save();
|
70 |
if ($result === true)
|
71 |
return $this->rest_response($map);
|
72 |
-
//return $this->rest_response(array('mapid' => $map->mapid, 'title' => $map->title));
|
73 |
else
|
74 |
return new WP_Error('map_clone', 'Internal error when copying');
|
75 |
}
|
@@ -167,7 +167,7 @@ class Mappress_Api {
|
|
167 |
public function mutate_map($request) {
|
168 |
ob_start();
|
169 |
$mapid = $request->get_param('mapid');
|
170 |
-
$mapdata = $request->get_param('
|
171 |
|
172 |
if (!$mapid || !$mapdata)
|
173 |
return new WP_Error('mutate_map', 'Missing parameter while mutating');
|
@@ -176,7 +176,7 @@ class Mappress_Api {
|
|
176 |
if (!$result)
|
177 |
return new WP_Error('mutate_map', 'Internal error when mutating, your data was not saved!');
|
178 |
|
179 |
-
return $this->rest_response(
|
180 |
}
|
181 |
|
182 |
public function update_map($request) {
|
@@ -216,7 +216,7 @@ class Mappress_Api {
|
|
216 |
return current_user_can('edit_posts');
|
217 |
},
|
218 |
),
|
219 |
-
)
|
220 |
);
|
221 |
|
222 |
register_rest_route(
|
@@ -251,7 +251,7 @@ class Mappress_Api {
|
|
251 |
'permission_callback' => function() {
|
252 |
return current_user_can('edit_posts');
|
253 |
},
|
254 |
-
)
|
255 |
)
|
256 |
);
|
257 |
|
@@ -276,7 +276,7 @@ class Mappress_Api {
|
|
276 |
'permission_callback' => function() {
|
277 |
return current_user_can('edit_posts');
|
278 |
},
|
279 |
-
)
|
280 |
);
|
281 |
}
|
282 |
|
@@ -295,4 +295,4 @@ class Mappress_Api {
|
|
295 |
return rest_ensure_response($response);
|
296 |
}
|
297 |
}
|
298 |
-
?>
|
53 |
ob_start();
|
54 |
|
55 |
$mapid = $request->get_param('mapid');
|
56 |
+
$oid = $request->get_param('oid');
|
57 |
|
58 |
if (!$mapid)
|
59 |
return new WP_Error('map_clone', 'Missing map ID');
|
63 |
return new WP_Error('map_clone', 'Original map not found');
|
64 |
|
65 |
$map->mapid = null;
|
66 |
+
$map->metaKey = null; // Map is no longer automatic
|
67 |
+
$map->oid = ($oid) ? $oid : 0; // Assign dupe to current post (editor only, library will be null)
|
68 |
$map->title = sprintf(__('Copy of %s', 'mappress-google-maps-for-wordpress'), (($map->title) ? $map->title : __('Untitled', 'mappress-google-maps-for-wordpress')));
|
69 |
|
70 |
$result = $map->save();
|
71 |
if ($result === true)
|
72 |
return $this->rest_response($map);
|
|
|
73 |
else
|
74 |
return new WP_Error('map_clone', 'Internal error when copying');
|
75 |
}
|
167 |
public function mutate_map($request) {
|
168 |
ob_start();
|
169 |
$mapid = $request->get_param('mapid');
|
170 |
+
$mapdata = $request->get_param('changes');
|
171 |
|
172 |
if (!$mapid || !$mapdata)
|
173 |
return new WP_Error('mutate_map', 'Missing parameter while mutating');
|
176 |
if (!$result)
|
177 |
return new WP_Error('mutate_map', 'Internal error when mutating, your data was not saved!');
|
178 |
|
179 |
+
return $this->rest_response('OK');
|
180 |
}
|
181 |
|
182 |
public function update_map($request) {
|
216 |
return current_user_can('edit_posts');
|
217 |
},
|
218 |
),
|
219 |
+
)
|
220 |
);
|
221 |
|
222 |
register_rest_route(
|
251 |
'permission_callback' => function() {
|
252 |
return current_user_can('edit_posts');
|
253 |
},
|
254 |
+
)
|
255 |
)
|
256 |
);
|
257 |
|
276 |
'permission_callback' => function() {
|
277 |
return current_user_can('edit_posts');
|
278 |
},
|
279 |
+
)
|
280 |
);
|
281 |
}
|
282 |
|
295 |
return rest_ensure_response($response);
|
296 |
}
|
297 |
}
|
298 |
+
?>
|
mappress_map.php
CHANGED
@@ -18,6 +18,7 @@ class Mappress_Map extends Mappress_Obj {
|
|
18 |
$metaKey,
|
19 |
$name,
|
20 |
$oid,
|
|
|
21 |
$otype,
|
22 |
$poiList,
|
23 |
$query,
|
18 |
$metaKey,
|
19 |
$name,
|
20 |
$oid,
|
21 |
+
$otitle,
|
22 |
$otype,
|
23 |
$poiList,
|
24 |
$query,
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: maps, google maps, map, map markers, google map, leaflet maps, leaflet map
|
|
5 |
Requires at least: 5.3
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
-
Stable tag: 2.83.
|
9 |
|
10 |
== Description ==
|
11 |
MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
|
@@ -89,6 +89,9 @@ Please see the plugin documentation pages:
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 2.83.10 =
|
93 |
* Changed: map minimum width changed from 250 to 200px
|
94 |
* Changed: template editor split to separate module
|
5 |
Requires at least: 5.3
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
+
Stable tag: 2.83.11
|
9 |
|
10 |
== Description ==
|
11 |
MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 2.83.11 =
|
93 |
+
* Fixed: syntax error in API for old versions of PHP (<7.3)
|
94 |
+
|
95 |
= 2.83.10 =
|
96 |
* Changed: map minimum width changed from 250 to 200px
|
97 |
* Changed: template editor split to separate module
|