Skip to content

Commit 4303cb5

Browse files
author
bozdoz
committed
v2.13.0
1 parent e53d5aa commit 4303cb5

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Leaflet Map WordPress Plugin
22

3-
![Leaflet](https://img.shields.io/badge/leaflet-1.3.4-green.svg?style=flat)
3+
![Leaflet](https://img.shields.io/badge/leaflet-1.4.0-green.svg?style=flat)
44
![WordPress](https://img.shields.io/badge/wordpress-5.0-green.svg?style=flat)
55

66
![Header Image](https://ps.w.org/leaflet-map/assets/banner-1544x500.png?rev=1693083)

leaflet-map.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Author URI: https://twitter.com/bozdoz/
99
* Text Domain: leaflet-map
1010
* Domain Path: /languages/
11-
* Version: 2.12.0
11+
* Version: 2.13.0
1212
* License: GPL2
1313
* Leaflet Map is free software: you can redistribute it and/or modify
1414
* it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@
2929
exit;
3030
}
3131

32-
define('LEAFLET_MAP__PLUGIN_VERSION', '2.12.0');
32+
define('LEAFLET_MAP__PLUGIN_VERSION', '2.13.0');
3333
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__);
3434
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__));
3535

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leaflet-map",
3-
"version": "2.12.0",
3+
"version": "2.13.0",
44
"description": "Leaflet Map WordPress Plugin",
55
"main": "index.js",
66
"scripts": {

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Donate link: https://www.paypal.me/bozdoz
77
Tags: leaflet, map, mobile, javascript, openstreetmap, mapquest, interactive
88
Requires at least: 3.0.1
99
Tested up to: 5.0.2
10-
Version: 2.12.0
11-
Stable tag: 2.12.0
10+
Version: 2.13.0
11+
Stable tag: 2.13.0
1212
License: GPLv2
1313
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1414

@@ -155,6 +155,10 @@ Yes: use the keyword `attribution` in your shortcode (semi-colon separated list
155155

156156
== Changelog ==
157157

158+
= 2.13.0 =
159+
* Updated LeafletJS to 1.4.0
160+
* Replaced `fit_markers` with `fitbounds`, which now fits all shapes in map view
161+
158162
= 2.12.0 =
159163
* Re-added Google Geocoder (optional), since they forced billing accounts
160164
* Fixed links in shortcode helper page

scripts/construct-leaflet-map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
/**
5757
* Get/Create L.FeatureGroup for ALL shapes; used for `fitbounds`
58-
* @since 2.12.0
58+
* @since 2.13.0
5959
*/
6060
this.getCurrentGroup = function () {
6161
// marker groups are mapid -> feature group
@@ -68,7 +68,7 @@
6868

6969
/**
7070
* backwards-compatible getCurrentGroup
71-
* @deprecated 2.12.0
71+
* @deprecated 2.13.0
7272
*/
7373
this.getCurrentMarkerGroup = this.getCurrentGroup;
7474

shortcodes/class.map-shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function getAtts($atts='')
8080
$atts['doubleclickzoom'] = array_key_exists('doubleclickzoom', $atts) ?
8181
$doubleclickzoom : $settings->get('double_click_zoom');
8282

83-
// backwards-compatible fit_markers
83+
// @deprecated backwards-compatible fit_markers
8484
$atts['fit_markers'] = array_key_exists('fit_markers', $atts) ?
8585
$fit_markers : $settings->get('fit_markers');
8686

0 commit comments

Comments
 (0)