Version Description
[2012-07-13] = * fixed: width/height in digits (no units) defaults to pixels (sorry folks, I thought I tested that, but missed it somehow!)
Download this release
Release Info
Developer | webaware |
Plugin | Flexible Map |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- class.FlxMapPlugin.php +2 -2
- flexible-map.php +1 -1
- readme.txt +4 -1
class.FlxMapPlugin.php
CHANGED
@@ -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)
|
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
|
@@ -314,7 +314,7 @@ HTML;
|
|
314 |
}
|
315 |
else {
|
316 |
// found only digits, so append px
|
317 |
-
$units
|
318 |
}
|
319 |
}
|
320 |
|
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
|
314 |
}
|
315 |
else {
|
316 |
// found only digits, so append px
|
317 |
+
$units = $units . 'px';
|
318 |
}
|
319 |
}
|
320 |
|
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.
|
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.3.1
|
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.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -148,6 +148,9 @@ The initial translations were made using Google Translate, so it's likely that s
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
151 |
= 1.3.0 [2012-07-12] =
|
152 |
* fixed: Norwegian translation had incorrect file name
|
153 |
* fixed: Malaysian translation had incorrect index (was overwriting Macedonian translation)
|
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 |
|
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 |
+
|
154 |
= 1.3.0 [2012-07-12] =
|
155 |
* fixed: Norwegian translation had incorrect file name
|
156 |
* fixed: Malaysian translation had incorrect index (was overwriting Macedonian translation)
|