WP Store Locator - Version 1.2.13

Version Description

  • Fixed the store search not returning any results when the limit results dropdown is hidden
Download this release

Release Info

Developer tijmensmit
Plugin Icon 128x128 WP Store Locator
Version 1.2.13
Comparing to
See all releases

Code changes from version 1.2.12 to 1.2.13

frontend/wpsl-ajax-functions.php CHANGED
@@ -23,7 +23,7 @@ function wpsl_store_search() {
23
  * The only situation when it can be empty, is when the "Show the limit results dropdown"
24
  * checkbox is unchecked on the settings page.
25
  */
26
- if ( !$_GET['max_results'] ) {
27
  $max_results = get_default_list_value( $type = 'max_results' );
28
  } else {
29
  $max_results = $_GET['max_results'];
23
  * The only situation when it can be empty, is when the "Show the limit results dropdown"
24
  * checkbox is unchecked on the settings page.
25
  */
26
+ if ( ( $_GET['max_results'] == 'NaN' ) || ( !$_GET['max_results'] ) ) {
27
  $max_results = get_default_list_value( $type = 'max_results' );
28
  } else {
29
  $max_results = $_GET['max_results'];
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tijmensmit
3
  Tags: google maps, store locator, business locations, geocoding, stores, geo
4
  Requires at least: 3.5
5
  Tested up to: 3.8.1
6
- Stable tag: 1.2.12
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -65,6 +65,9 @@ Make sure you don't have any security plugins, or custom functions running that
65
 
66
  == Changelog ==
67
 
 
 
 
68
  = 1.2.12 =
69
  * Added an option to choose where the 'More info' details is shown, either in the store listings or on the map
70
  * Added the 'back' and 'reset' text to the label fields on the settings page
3
  Tags: google maps, store locator, business locations, geocoding, stores, geo
4
  Requires at least: 3.5
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.2.13
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
65
 
66
  == Changelog ==
67
 
68
+ = 1.2.13 =
69
+ * Fixed the store search not returning any results when the limit results dropdown is hidden
70
+
71
  = 1.2.12 =
72
  * Added an option to choose where the 'More info' details is shown, either in the store listings or on the map
73
  * Added the 'back' and 'reset' text to the label fields on the settings page
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.12
9
  Text Domain: wpsl
10
  Domain Path: /languages/
11
  License: GPLv3
@@ -130,7 +130,7 @@ if ( !class_exists( 'WP_Store_locator' ) ) {
130
  public function define_constants() {
131
 
132
  if ( !defined( 'WPSL_VERSION_NUM' ) )
133
- define( 'WPSL_VERSION_NUM', '1.2.12' );
134
 
135
  if ( !defined( 'WPSL_URL' ) )
136
  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.13
9
  Text Domain: wpsl
10
  Domain Path: /languages/
11
  License: GPLv3
130
  public function define_constants() {
131
 
132
  if ( !defined( 'WPSL_VERSION_NUM' ) )
133
+ define( 'WPSL_VERSION_NUM', '1.2.13' );
134
 
135
  if ( !defined( 'WPSL_URL' ) )
136
  define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );