MapPress Easy Google Maps - Version 2.62.12

Version Description

  • Fixed: mapbox style preview URL not working
  • Added: workaround for Jetpack Infinite Scroll bug that prevents inline scripts
Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.62.12
Comparing to
See all releases

Code changes from version 2.62.11 to 2.62.12

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.62.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: 2021-05-07T01:11:57+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
@@ -34,7 +34,7 @@ msgid "https://www.mappresspro.com/chris-contact"
34
  msgstr ""
35
 
36
  #: mappress.php:200
37
- #: mappress.php:758
38
  msgid "Settings"
39
  msgstr ""
40
 
@@ -132,7 +132,7 @@ msgid "Improve this map"
132
  msgstr ""
133
 
134
  #: mappress.php:628
135
- #: mappress.php:647
136
  msgid "Streets"
137
  msgstr ""
138
 
@@ -156,12 +156,12 @@ msgstr ""
156
  msgid "Satellite Streets"
157
  msgstr ""
158
 
159
- #: mappress.php:759
160
  #: mappress_settings.php:370
161
  msgid "What's new"
162
  msgstr ""
163
 
164
- #: mappress.php:1008
165
  msgid "Version"
166
  msgstr ""
167
 
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.62.12\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: 2021-05-12T21:18:04+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
34
  msgstr ""
35
 
36
  #: mappress.php:200
37
+ #: mappress.php:757
38
  msgid "Settings"
39
  msgstr ""
40
 
132
  msgstr ""
133
 
134
  #: mappress.php:628
135
+ #: mappress.php:646
136
  msgid "Streets"
137
  msgstr ""
138
 
156
  msgid "Satellite Streets"
157
  msgstr ""
158
 
159
+ #: mappress.php:758
160
  #: mappress_settings.php:370
161
  msgid "What's new"
162
  msgstr ""
163
 
164
+ #: mappress.php:1007
165
  msgid "Version"
166
  msgstr ""
167
 
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.62.11
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.62.11';
39
 
40
  static
41
  $baseurl,
@@ -635,9 +635,8 @@ class Mappress {
635
 
636
  // Mapbox studio styles - extract user/id from url
637
  foreach(self::$options->mapboxStyles as $name => $url) {
638
- $url = str_ireplace('.html', '', $url);
639
- $url = str_ireplace('https://api.mapbox.com/styles/v1/', '', $url); // Old studio format
640
- $url = str_ireplace('mapbox://styles/', '', $url); // New studio format
641
  $parts = explode('/', $url);
642
  if (count($parts) == 2)
643
  $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.62.12
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.62.12';
39
 
40
  static
41
  $baseurl,
635
 
636
  // Mapbox studio styles - extract user/id from url
637
  foreach(self::$options->mapboxStyles as $name => $url) {
638
+ $parts = explode('?', strtolower($url));
639
+ $url = str_ireplace(array('.html', 'https://api.mapbox.com/styles/v1/', 'mapbox://styles/'), '', $parts[0]);
 
640
  $parts = explode('/', $url);
641
  if (count($parts) == 2)
642
  $baselayers[] = array('provider' => 'mapbox', 'user' => $parts[0], 'id' => $parts[1], 'name' => $name, 'label' => $name);
mappress_map.php CHANGED
@@ -445,7 +445,7 @@ class Mappress_Map extends Mappress_Obj {
445
  $script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
446
 
447
  // Use inline scripts for XHTML and some themes which match tags (incorrectly) in the content
448
- if (function_exists('wp_add_inline_script') && Mappress::$options->footer && (!defined('DOING_AJAX') || !DOING_AJAX))
449
  wp_add_inline_script('mappress', "//<![CDATA[\r\n" . $script . "\r\n//]]>");
450
  else
451
  $html .= Mappress::script($script);
445
  $script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
446
 
447
  // Use inline scripts for XHTML and some themes which match tags (incorrectly) in the content
448
+ if (function_exists('wp_add_inline_script') && Mappress::is_footer())
449
  wp_add_inline_script('mappress', "//<![CDATA[\r\n" . $script . "\r\n//]]>");
450
  else
451
  $html .= Mappress::script($script);
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: 5.7
8
- Stable tag: 2.62.11
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interfactive Google and Leaflet maps to WordPress.
@@ -84,6 +84,10 @@ Please see the plugin documentation pages:
84
 
85
  == Changelog ==
86
 
 
 
 
 
87
  = 2.62.11 =
88
  * Fixed: default POI zoom setting not saving
89
 
5
  Requires at least: 5.3
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 2.62.12
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interfactive Google and Leaflet maps to WordPress.
84
 
85
  == Changelog ==
86
 
87
+ = 2.62.12 =
88
+ * Fixed: mapbox style preview URL not working
89
+ * Added: workaround for Jetpack Infinite Scroll bug that prevents inline scripts
90
+
91
  = 2.62.11 =
92
  * Fixed: default POI zoom setting not saving
93