Version Description
Download this release
Release Info
Developer | tijmensmit |
Plugin | WP Store Locator |
Version | 2.2.232 |
Comparing to | |
See all releases |
Code changes from version 2.2.231 to 2.2.232
- admin/class-metaboxes.php +7 -2
- frontend/class-frontend.php +3 -1
- inc/wpsl-functions.php +1 -1
- readme.txt +8 -3
- wp-store-locator.php +2 -2
admin/class-metaboxes.php
CHANGED
@@ -466,8 +466,13 @@ if ( !class_exists( 'WPSL_Metaboxes' ) ) {
|
|
466 |
</tr>
|
467 |
<?php
|
468 |
foreach ( $opening_days as $index => $day ) {
|
469 |
-
$i
|
470 |
-
|
|
|
|
|
|
|
|
|
|
|
471 |
?>
|
472 |
<tr>
|
473 |
<td class="wpsl-opening-day"><?php echo esc_html( $day ); ?></td>
|
466 |
</tr>
|
467 |
<?php
|
468 |
foreach ( $opening_days as $index => $day ) {
|
469 |
+
$i = 0;
|
470 |
+
|
471 |
+
if ( is_array( $opening_hours[$index] ) ) {
|
472 |
+
$hour_count = count( $opening_hours[$index] );
|
473 |
+
} else {
|
474 |
+
$hour_count = 0;
|
475 |
+
}
|
476 |
?>
|
477 |
<tr>
|
478 |
<td class="wpsl-opening-day"><?php echo esc_html( $day ); ?></td>
|
frontend/class-frontend.php
CHANGED
@@ -607,7 +607,9 @@ if ( !class_exists( 'WPSL_Frontend' ) ) {
|
|
607 |
|
608 |
global $wpsl_settings, $post;
|
609 |
|
610 |
-
|
|
|
|
|
611 |
array_push( $this->load_scripts, 'wpsl_base' );
|
612 |
|
613 |
$content .= '[wpsl_map]';
|
607 |
|
608 |
global $wpsl_settings, $post;
|
609 |
|
610 |
+
$skip_cpt_template = apply_filters( 'wpsl_skip_cpt_template', false );
|
611 |
+
|
612 |
+
if ( isset( $post->post_type ) && $post->post_type == 'wpsl_stores' && is_single() && in_the_loop() && !$skip_cpt_template ) {
|
613 |
array_push( $this->load_scripts, 'wpsl_base' );
|
614 |
|
615 |
$content .= '[wpsl_map]';
|
inc/wpsl-functions.php
CHANGED
@@ -51,7 +51,7 @@ function wpsl_get_gmap_api_params( $api_key_type, $geocode_params = false ) {
|
|
51 |
}
|
52 |
|
53 |
if ( $api_key_type == 'browser_key' ) {
|
54 |
-
$api_version = apply_filters( 'wpsl_gmap_api_version', '3.
|
55 |
$api_params .= '&v=' . $api_version;
|
56 |
}
|
57 |
|
51 |
}
|
52 |
|
53 |
if ( $api_key_type == 'browser_key' ) {
|
54 |
+
$api_version = apply_filters( 'wpsl_gmap_api_version', '3.39' );
|
55 |
$api_params .= '&v=' . $api_version;
|
56 |
}
|
57 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: tijmensmit
|
|
4 |
Donate link: https://www.paypal.me/tijmensmit
|
5 |
Tags: google maps, store locator, business locations, geocoding, stores, geo, zipcode locator, dealer locater, geocode, gmaps, google map, google map plugin, location finder, map tools, shop locator, wp google map
|
6 |
Requires at least: 3.7
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
@@ -22,7 +22,7 @@ the language that is set in the admin panel.
|
|
22 |
|
23 |
* Manage an unlimited numbers of stores.
|
24 |
* Provide extra details for stores like the phone, fax, email, url, description and opening hours. There are filters available that allow you add [custom](http://wpstorelocator.co/document/add-custom-meta-data-to-store-locations/) meta data.
|
25 |
-
* Support for custom [map styles](
|
26 |
* Choose from nine retina ready marker icons.
|
27 |
* Show the driving distances in either km or miles.
|
28 |
* Shortcodes that enable you to add individual opening hours, addresses or just a map with a single marker to any page.
|
@@ -127,6 +127,11 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
|
|
|
|
130 |
= 2.2.231, Sept 18, 2019 =
|
131 |
* Fixed: Bug that in some cases broken the Borlabs Cookie plugin from working correctly together with the store locator plugin.
|
132 |
|
4 |
Donate link: https://www.paypal.me/tijmensmit
|
5 |
Tags: google maps, store locator, business locations, geocoding, stores, geo, zipcode locator, dealer locater, geocode, gmaps, google map, google map plugin, location finder, map tools, shop locator, wp google map
|
6 |
Requires at least: 3.7
|
7 |
+
Tested up to: 5.4
|
8 |
+
Stable tag: 2.2.232
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl.html
|
11 |
|
22 |
|
23 |
* Manage an unlimited numbers of stores.
|
24 |
* Provide extra details for stores like the phone, fax, email, url, description and opening hours. There are filters available that allow you add [custom](http://wpstorelocator.co/document/add-custom-meta-data-to-store-locations/) meta data.
|
25 |
+
* Support for custom [map styles](https://snazzymaps.com/).
|
26 |
* Choose from nine retina ready marker icons.
|
27 |
* Show the driving distances in either km or miles.
|
28 |
* Shortcodes that enable you to add individual opening hours, addresses or just a map with a single marker to any page.
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 2.2.232, Nov 27, 2019 =
|
131 |
+
* Fixed: The opening hours triggering an error on some server configurations.
|
132 |
+
* Fixed: Restored the [wpsl_skip_cpt_template](https://wpstorelocator.co/document/wpsl_skip_cpt_template/) filter which was accidently removed in a previous update.
|
133 |
+
* Changed: Set the loaded Google Maps JavaScript [version](https://developers.google.com/maps/documentation/javascript/versions) to 3.39 instead of 3.36.
|
134 |
+
|
135 |
= 2.2.231, Sept 18, 2019 =
|
136 |
* Fixed: Bug that in some cases broken the Borlabs Cookie plugin from working correctly together with the store locator plugin.
|
137 |
|
wp-store-locator.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Store Locator
|
|
4 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
5 |
Author: Tijmen Smit
|
6 |
Author URI: https://wpstorelocator.co/
|
7 |
-
Version: 2.2.
|
8 |
Text Domain: wpsl
|
9 |
Domain Path: /languages/
|
10 |
License: GPL v3
|
@@ -61,7 +61,7 @@ if ( !class_exists( 'WP_Store_locator' ) ) {
|
|
61 |
public function define_constants() {
|
62 |
|
63 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
64 |
-
define( 'WPSL_VERSION_NUM', '2.2.
|
65 |
|
66 |
if ( !defined( 'WPSL_URL' ) )
|
67 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|
4 |
Description: An easy to use location management system that enables users to search for nearby physical stores
|
5 |
Author: Tijmen Smit
|
6 |
Author URI: https://wpstorelocator.co/
|
7 |
+
Version: 2.2.232
|
8 |
Text Domain: wpsl
|
9 |
Domain Path: /languages/
|
10 |
License: GPL v3
|
61 |
public function define_constants() {
|
62 |
|
63 |
if ( !defined( 'WPSL_VERSION_NUM' ) )
|
64 |
+
define( 'WPSL_VERSION_NUM', '2.2.232' );
|
65 |
|
66 |
if ( !defined( 'WPSL_URL' ) )
|
67 |
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
|