WP Store Locator - Version 1.2.25

Version Description

  • Fixed: The store search breaking after the reset button was clicked, via Drew75
  • Fixed: Two PHP notices.
Download this release

Release Info

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

Code changes from version 1.2.24 to 1.2.25

admin/class-admin.php CHANGED
@@ -634,7 +634,7 @@ if ( !class_exists( 'WPSL_Admin' ) ) {
634
  * @return void
635
  */
636
  public function show_location_warning() {
637
- if ( $_GET['page'] !== 'wpsl_settings' ) {
638
  echo "<div id='message' class='error'><p><strong>" . sprintf( __( "Before adding the [wpsl] shortcode to a page, please don't forget to define a start point on the %ssettings%s page.", "wpsl" ), "<a href='" . admin_url( 'admin.php?page=wpsl_settings' ) . "'>", "</a>" ) . " <a class='wpsl-dismiss' data-nonce='" . wp_create_nonce( 'wpsl-dismiss' ) . "' href='#'>" . __( "Dismiss", "wpsl" ) . "</a></p></div>";
639
  }
640
  }
634
  * @return void
635
  */
636
  public function show_location_warning() {
637
+ if ( isset( $_GET['page'] ) && $_GET['page'] !== 'wpsl_settings' ) {
638
  echo "<div id='message' class='error'><p><strong>" . sprintf( __( "Before adding the [wpsl] shortcode to a page, please don't forget to define a start point on the %ssettings%s page.", "wpsl" ), "<a href='" . admin_url( 'admin.php?page=wpsl_settings' ) . "'>", "</a>" ) . " <a class='wpsl-dismiss' data-nonce='" . wp_create_nonce( 'wpsl-dismiss' ) . "' href='#'>" . __( "Dismiss", "wpsl" ) . "</a></p></div>";
639
  }
640
  }
admin/class-store-overview.php CHANGED
@@ -390,7 +390,7 @@ class WPSL_Store_Overview extends WP_List_Table {
390
  * @return void
391
  */
392
  function display() {
393
- extract( $this->_args );
394
 
395
  $this->display_tablenav( 'top' );
396
  ?>
390
  * @return void
391
  */
392
  function display() {
393
+ $singular = $this->_args['singular'];
394
 
395
  $this->display_tablenav( 'top' );
396
  ?>
js/wpsl-gmap.js CHANGED
@@ -622,8 +622,8 @@ function makeAjaxRequest( startLatLng, resetMap, autoLoad ) {
622
  ajaxData.max_results = $( "#wpsl-results .wpsl-dropdown" ).val();
623
  ajaxData.radius = $( "#wpsl-radius .wpsl-dropdown" ).val();
624
  } else {
625
- ajaxData.max_results = parseInt( $( "#wpsl-results .wpsl-selected-dropdown" ).text() );
626
- ajaxData.radius = parseInt( $( "#wpsl-radius .wpsl-selected-dropdown" ).text() );
627
  }
628
  }
629
 
622
  ajaxData.max_results = $( "#wpsl-results .wpsl-dropdown" ).val();
623
  ajaxData.radius = $( "#wpsl-radius .wpsl-dropdown" ).val();
624
  } else {
625
+ ajaxData.max_results = parseInt( $( "#wpsl-results .wpsl-selected-item" ).text() );
626
+ ajaxData.radius = parseInt( $( "#wpsl-radius .wpsl-selected-item" ).text() );
627
  }
628
  }
629
 
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: 4.1
6
- Stable tag: 1.2.24
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -78,6 +78,10 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 1.2.24 =
82
  * Fixed: Clicking the marker would no longer open the info window after a Google Maps API update. This only happened if street view was enabled.
83
  * Fixed: A fatal error on some installations caused by the usage of mysql_real_escape_string, it is replaced with esc_sql.
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.2
6
+ Stable tag: 1.2.25
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
78
 
79
  == Changelog ==
80
 
81
+ = 1.2.25 =
82
+ * Fixed: The store search breaking after the reset button was clicked, via [Drew75](https://wordpress.org/support/profile/drew75)
83
+ * Fixed: Two PHP notices.
84
+
85
  = 1.2.24 =
86
  * Fixed: Clicking the marker would no longer open the info window after a Google Maps API update. This only happened if street view was enabled.
87
  * Fixed: A fatal error on some installations caused by the usage of mysql_real_escape_string, it is replaced with esc_sql.
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.24
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.24' );
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.25
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.25' );
87
 
88
  if ( !defined( 'WPSL_URL' ) )
89
  define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );