Version Description
- Fixed: custom styles stopped working after MapBox URL change
- Fixed: updated line unused method for PHP 7.2 compatibility checker
Download this release
Release Info
Developer | chrisvrichardson |
Plugin | MapPress Easy Google Maps |
Version | 2.53.2 |
Comparing to | |
See all releases |
Code changes from version 2.53.1 to 2.53.2
- languages/mappress-google-maps-for-wordpress.pot +5 -5
- mappress.php +6 -5
- mappress_controls.php +1 -1
- readme.txt +5 -1
languages/mappress-google-maps-for-wordpress.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MapPress Maps for WordPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MapPress Maps for WordPress 2.53.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -122,7 +122,7 @@ msgstr ""
|
|
122 |
msgid "MapPress Settings"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: mappress.php:315 mappress.php:
|
126 |
msgid "Version"
|
127 |
msgstr ""
|
128 |
|
@@ -186,7 +186,7 @@ msgstr ""
|
|
186 |
msgid "Improve this map"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: mappress.php:455 mappress.php:
|
190 |
msgid "Streets"
|
191 |
msgstr ""
|
192 |
|
@@ -210,7 +210,7 @@ msgstr ""
|
|
210 |
msgid "Satellite Streets"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: mappress.php:
|
214 |
msgid "Settings"
|
215 |
msgstr ""
|
216 |
|
2 |
# This file is distributed under the same license as the MapPress Maps for WordPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MapPress Maps for WordPress 2.53.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
|
7 |
+
"POT-Creation-Date: 2019-09-10 14:49:53+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
122 |
msgid "MapPress Settings"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: mappress.php:315 mappress.php:776
|
126 |
msgid "Version"
|
127 |
msgstr ""
|
128 |
|
186 |
msgid "Improve this map"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: mappress.php:455 mappress.php:474
|
190 |
msgid "Streets"
|
191 |
msgstr ""
|
192 |
|
210 |
msgid "Satellite Streets"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: mappress.php:548
|
214 |
msgid "Settings"
|
215 |
msgstr ""
|
216 |
|
mappress.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
|
|
4 |
Plugin URI: https://www.mappresspro.com/mappress
|
5 |
Author URI: https://www.mappresspro.com/chris-contact
|
6 |
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
|
7 |
-
Version: 2.53.
|
8 |
Author: Chris Richardson
|
9 |
Text Domain: mappress-google-maps-for-wordpress
|
10 |
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
|
@@ -35,7 +35,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
|
|
35 |
}
|
36 |
|
37 |
class Mappress {
|
38 |
-
const VERSION = '2.53.
|
39 |
|
40 |
static
|
41 |
$baseurl,
|
@@ -460,10 +460,11 @@ class Mappress {
|
|
460 |
array('provider' => 'mapbox', 'user' => 'mapbox', 'id' => 'satellite-streets-v10', 'name' => 'satellite-streets', 'label' => __('Satellite Streets', 'mappress-google-maps-for-wordpress'))
|
461 |
);
|
462 |
|
463 |
-
// Mapbox studio styles
|
464 |
foreach(self::$options->mapboxStyles as $name => $url) {
|
465 |
-
$url =
|
466 |
-
$url = str_ireplace('https://api.mapbox.com/styles/v1/', '', $url);
|
|
|
467 |
$parts = explode('/', $url);
|
468 |
if (count($parts) == 2)
|
469 |
$baselayers[] = array('provider' => 'mapbox', 'user' => $parts[0], 'id' => $parts[1], 'name' => $name, 'label' => $name);
|
4 |
Plugin URI: https://www.mappresspro.com/mappress
|
5 |
Author URI: https://www.mappresspro.com/chris-contact
|
6 |
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
|
7 |
+
Version: 2.53.2
|
8 |
Author: Chris Richardson
|
9 |
Text Domain: mappress-google-maps-for-wordpress
|
10 |
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
|
35 |
}
|
36 |
|
37 |
class Mappress {
|
38 |
+
const VERSION = '2.53.2';
|
39 |
|
40 |
static
|
41 |
$baseurl,
|
460 |
array('provider' => 'mapbox', 'user' => 'mapbox', 'id' => 'satellite-streets-v10', 'name' => 'satellite-streets', 'label' => __('Satellite Streets', 'mappress-google-maps-for-wordpress'))
|
461 |
);
|
462 |
|
463 |
+
// Mapbox studio styles - extract user/id from url
|
464 |
foreach(self::$options->mapboxStyles as $name => $url) {
|
465 |
+
$url = str_ireplace('.html', '', $url);
|
466 |
+
$url = str_ireplace('https://api.mapbox.com/styles/v1/', '', $url); // Old studio format
|
467 |
+
$url = str_ireplace('mapbox://styles/', '', $url); // New studio format
|
468 |
$parts = explode('/', $url);
|
469 |
if (count($parts) == 2)
|
470 |
$baselayers[] = array('provider' => 'mapbox', 'user' => $parts[0], 'id' => $parts[1], 'name' => $name, 'label' => $name);
|
mappress_controls.php
CHANGED
@@ -214,7 +214,7 @@ class Mappress_Controls {
|
|
214 |
static function get_meta_values($meta_key) {
|
215 |
global $wpdb;
|
216 |
$sql = "SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = %s AND meta_value != '' ORDER BY meta_value";
|
217 |
-
$meta_values = $wpdb->get_col($wpdb->prepare($sql, $
|
218 |
$results = ($meta_values) ? array_combine($meta_values, $meta_values) : array();
|
219 |
return $results;
|
220 |
}
|
214 |
static function get_meta_values($meta_key) {
|
215 |
global $wpdb;
|
216 |
$sql = "SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = %s AND meta_value != '' ORDER BY meta_value";
|
217 |
+
$meta_values = $wpdb->get_col($wpdb->prepare($sql, $meta_key));
|
218 |
$results = ($meta_values) ? array_combine($meta_values, $meta_values) : array();
|
219 |
return $results;
|
220 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 2.53.
|
8 |
|
9 |
== Description ==
|
10 |
MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
|
@@ -86,6 +86,10 @@ Please see the plugin documentation pages:
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
89 |
= 2.53.1 =
|
90 |
* Changed: minor internal updates to geocoders
|
91 |
* Fixed: centering not working on maps from old versions of plugin
|
4 |
Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 2.53.2
|
8 |
|
9 |
== Description ==
|
10 |
MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 2.53.2 =
|
90 |
+
* Fixed: custom styles stopped working after MapBox URL change
|
91 |
+
* Fixed: updated line unused method for PHP 7.2 compatibility checker
|
92 |
+
|
93 |
= 2.53.1 =
|
94 |
* Changed: minor internal updates to geocoders
|
95 |
* Fixed: centering not working on maps from old versions of plugin
|