Flexible Map - Version 1.4.0

Version Description

[2012-08-22] = * changed: bump version of Google Maps API to 3.9 * added: allow CSS units in ch, rem, vh, vw, vmin, vmax

Download this release

Release Info

Developer webaware
Plugin Icon 128x128 Flexible Map
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.1 to 1.4.0

Files changed (3) hide show
  1. class.FlxMapPlugin.php +2 -2
  2. flexible-map.php +1 -1
  3. readme.txt +5 -1
class.FlxMapPlugin.php CHANGED
@@ -80,7 +80,7 @@ class FlxMapPlugin {
80
  $version = 9;
81
 
82
  // allow others to override the Google Maps API URL
83
- $apiURL = apply_filters('flexmap_google_maps_api_url', '//maps.google.com/maps/api/js?v=3.8&sensor=false');
84
  if (!empty($apiURL)) {
85
  echo "<script src=\"$apiURL\"></script>\n";
86
  }
@@ -306,7 +306,7 @@ HTML;
306
  $units = trim($units);
307
 
308
  // check for valid CSS units
309
- if (!preg_match('/^auto$|^[+-]?[0-9]+\\.?(?:[0-9]+)?(?:px|em|ex|%|in|cm|mm|pt|pc)$/', $units)) {
310
  // not valid, so check to see if it's only digits
311
  if (preg_match('/\D/', $units)) {
312
  // not digits, so set to default
80
  $version = 9;
81
 
82
  // allow others to override the Google Maps API URL
83
+ $apiURL = apply_filters('flexmap_google_maps_api_url', '//maps.google.com/maps/api/js?v=3.9&amp;sensor=false');
84
  if (!empty($apiURL)) {
85
  echo "<script src=\"$apiURL\"></script>\n";
86
  }
306
  $units = trim($units);
307
 
308
  // check for valid CSS units
309
+ if (!preg_match('/^auto$|^[+-]?[0-9]+\\.?(?:[0-9]+)?(?:px|em|ex|ch|%|in|cm|mm|pt|pc|rem|vh|vw|vmin|vmax)$/', $units)) {
310
  // not valid, so check to see if it's only digits
311
  if (preg_match('/\D/', $units)) {
312
  // not digits, so set to default
flexible-map.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Flexible Map
4
  Plugin URI: http://snippets.webaware.com.au/wordpress-plugins/wp-flexible-map/
5
  Description: Embed Google Maps in pages and posts, either by centre coodinates or street address, or by URL to a Google Earth KML file.
6
- Version: 1.3.1
7
  Author: WebAware
8
  Author URI: http://www.webaware.com.au/
9
  */
3
  Plugin Name: Flexible Map
4
  Plugin URI: http://snippets.webaware.com.au/wordpress-plugins/wp-flexible-map/
5
  Description: Embed Google Maps in pages and posts, either by centre coodinates or street address, or by URL to a Google Earth KML file.
6
+ Version: 1.4.0
7
  Author: WebAware
8
  Author URI: http://www.webaware.com.au/
9
  */
readme.txt CHANGED
@@ -7,7 +7,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
7
  Tags: google, maps, google maps, shortcode, kml
8
  Requires at least: 3.0.1
9
  Tested up to: 3.4.1
10
- Stable tag: 1.3.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -148,6 +148,10 @@ The initial translations were made using Google Translate, so it's likely that s
148
 
149
  == Changelog ==
150
 
 
 
 
 
151
  = 1.3.1 [2012-07-13] =
152
  * fixed: width/height in digits (no units) defaults to pixels (sorry folks, I thought I tested that, but missed it somehow!)
153
 
7
  Tags: google, maps, google maps, shortcode, kml
8
  Requires at least: 3.0.1
9
  Tested up to: 3.4.1
10
+ Stable tag: 1.4.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
148
 
149
  == Changelog ==
150
 
151
+ = 1.4.0 [2012-08-22] =
152
+ * changed: bump version of Google Maps API to 3.9
153
+ * added: allow CSS units in ch, rem, vh, vw, vmin, vmax
154
+
155
  = 1.3.1 [2012-07-13] =
156
  * fixed: width/height in digits (no units) defaults to pixels (sorry folks, I thought I tested that, but missed it somehow!)
157