Version Description
- Fixed the geocoding request for the map preview on the add/edit page not including the zipcode when it's present, which can misplace the marker
Download this release
Release Info
Developer | tijmensmit |
Plugin | WP Store Locator |
Version | 1.2.23 |
Comparing to | |
See all releases |
Code changes from version 1.2.22 to 1.2.23
- admin/js/wpsl-admin.js +11 -5
- readme.txt +5 -2
- wp-store-locator.php +2 -2
admin/js/wpsl-admin.js
CHANGED
@@ -120,11 +120,17 @@ $( "#wpsl-lookup-location" ).on( "click", function() {
|
|
120 |
* @returns {void}
|
121 |
*/
|
122 |
function codeAddress() {
|
123 |
-
var filteredResponse,
|
124 |
-
address
|
125 |
-
city
|
126 |
-
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
/* Check we have all the requird data before attempting to geocode the address */
|
130 |
if ( !validatePreviewFields( address, city, country ) ) {
|
120 |
* @returns {void}
|
121 |
*/
|
122 |
function codeAddress() {
|
123 |
+
var filteredResponse, fullAddress,
|
124 |
+
address = $( "#wpsl-store-address" ).val(),
|
125 |
+
city = $( "#wpsl-store-city" ).val(),
|
126 |
+
zip = $( "#wpsl-store-zip" ).val(),
|
127 |
+
country = $( "#wpsl-store-country" ).val();
|
128 |
+
|
129 |
+
if ( zip ) {
|
130 |
+
fullAddress = address + ',' + city + ',' + zip + ',' + country;
|
131 |
+
} else {
|
132 |
+
fullAddress = address + ',' + city + ',' + country;
|
133 |
+
}
|
134 |
|
135 |
/* Check we have all the requird data before attempting to geocode the address */
|
136 |
if ( !validatePreviewFields( address, city, country ) ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: tijmensmit
|
3 |
Tags: google maps, store locator, business locations, geocoding, stores, geo
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -78,6 +78,9 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.2.22 =
|
82 |
* Fixed compatibility issues with the Google Maps field in the Advanced Custom Fields plugin
|
83 |
* Fixed the store urls in the store listings sometimes breaking
|
2 |
Contributors: tijmensmit
|
3 |
Tags: google maps, store locator, business locations, geocoding, stores, geo
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 4.1
|
6 |
+
Stable tag: 1.2.23
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.2.23 =
|
82 |
+
* Fixed the geocoding request for the map preview on the add/edit page not including the zipcode when it's present, which can misplace the marker
|
83 |
+
|
84 |
= 1.2.22 =
|
85 |
* Fixed compatibility issues with the Google Maps field in the Advanced Custom Fields plugin
|
86 |
* Fixed the store urls in the store listings sometimes breaking
|
wp-store-locator.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI:
|
|
5 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
6 |
Author: Tijmen Smit
|
7 |
Author URI: http://tijmensmit.com/
|
8 |
-
Version: 1.2.
|
9 |
Text Domain: wpsl
|
10 |
Domain Path: /languages/
|
11 |
License: GPLv3
|
@@ -83,7 +83,7 @@ if ( !class_exists( 'WP_Store_locator' ) ) {
|
|
83 |
public function define_constants() {
|
84 |
|
85 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
86 |
-
define( 'WPSL_VERSION_NUM', '1.2.
|
87 |
|
88 |
if ( !defined( 'WPSL_URL' ) )
|
89 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|
5 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
6 |
Author: Tijmen Smit
|
7 |
Author URI: http://tijmensmit.com/
|
8 |
+
Version: 1.2.23
|
9 |
Text Domain: wpsl
|
10 |
Domain Path: /languages/
|
11 |
License: GPLv3
|
83 |
public function define_constants() {
|
84 |
|
85 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
86 |
+
define( 'WPSL_VERSION_NUM', '1.2.23' );
|
87 |
|
88 |
if ( !defined( 'WPSL_URL' ) )
|
89 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|