WP Store Locator - Version 2.2.234

Version Description

Download this release

Release Info

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

Code changes from version 2.2.233 to 2.2.234

admin/class-admin.php CHANGED
@@ -60,10 +60,18 @@ if ( !class_exists( 'WPSL_Admin' ) ) {
60
  add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
61
  add_action( 'wp_loaded', array( $this, 'disable_setting_notices' ) );
62
 
63
- add_action( 'wp_ajax_validate_server_key', array( $this->settings_page, 'ajax_validate_server_key' ) );
64
- add_action( 'wp_ajax_nopriv_validate_server_key', array( $this->settings_page, 'ajax_validate_server_key' ) );
65
  }
66
 
 
 
 
 
 
 
 
 
67
  /**
68
  * Include the required files.
69
  *
60
  add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
61
  add_action( 'wp_loaded', array( $this, 'disable_setting_notices' ) );
62
 
63
+ add_action( 'wp_ajax_validate_server_key', array( $this, 'ajax_validate_server_key' ) );
64
+ add_action( 'wp_ajax_nopriv_validate_server_key', array( $this, 'ajax_validate_server_key' ) );
65
  }
66
 
67
+ /**
68
+ * @since 2.2.234
69
+ * @return void
70
+ */
71
+ public function ajax_validate_server_key() {
72
+ $this->settings_page->ajax_validate_server_key();
73
+ }
74
+
75
  /**
76
  * Include the required files.
77
  *
admin/upgrade.php CHANGED
@@ -14,7 +14,7 @@ function wpsl_check_upgrade() {
14
 
15
  $current_version = get_option( 'wpsl_version' );
16
 
17
- if ( version_compare( $current_version, WPSL_VERSION_NUM, '===' ) )
18
  return;
19
 
20
  if ( version_compare( $current_version, '1.1', '<' ) ) {
14
 
15
  $current_version = get_option( 'wpsl_version' );
16
 
17
+ if ( version_compare( $current_version, WPSL_VERSION_NUM, '==' ) )
18
  return;
19
 
20
  if ( version_compare( $current_version, '1.1', '<' ) ) {
inc/class-i18n.php CHANGED
@@ -105,20 +105,20 @@ if ( !class_exists( 'WPSL_i18n' ) ) {
105
  * that was set on the settings page.
106
  *
107
  * @since 2.0.0
108
- * @param string $name The name of the translated string
109
- * @param string $text The text of the translated string
110
- * @return string The translation
111
  */
112
  public function get_translation( $name, $text ) {
113
-
114
  global $wpsl_settings;
115
 
116
  if ( defined( 'WPML_ST_VERSION' ) ) {
117
  $translation = $text;
118
- } elseif ( defined( 'POLYLANG_VERSION' ) && defined( 'PLL_INC' ) ) {
119
 
120
- if ( !function_exists( 'pll__' ) ) {
121
- require_once PLL_INC . '/api.php';
122
  }
123
 
124
  $translation = pll__( $text );
@@ -128,7 +128,7 @@ if ( !class_exists( 'WPSL_i18n' ) ) {
128
 
129
  return $translation;
130
  }
131
-
132
  /**
133
  * If a multilingual plugin like WPML or qTranslate X is active
134
  * we return the active language code.
105
  * that was set on the settings page.
106
  *
107
  * @since 2.0.0
108
+ * @param string $name The name of the translated string
109
+ * @param string $text The text of the translated string
110
+ * @return string $translation The translation
111
  */
112
  public function get_translation( $name, $text ) {
113
+
114
  global $wpsl_settings;
115
 
116
  if ( defined( 'WPML_ST_VERSION' ) ) {
117
  $translation = $text;
118
+ } elseif ( defined( 'POLYLANG_VERSION' ) && defined( 'POLYLANG_DIR' ) ) {
119
 
120
+ if ( ! function_exists( 'pll__' ) ) {
121
+ require_once POLYLANG_DIR . '/include/api.php';
122
  }
123
 
124
  $translation = pll__( $text );
128
 
129
  return $translation;
130
  }
131
+
132
  /**
133
  * If a multilingual plugin like WPML or qTranslate X is active
134
  * we return the active language code.
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.5
8
- Stable tag: 2.2.233
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
 
@@ -61,9 +61,9 @@ The [Search Widget](https://wpstorelocator.co/add-ons/search-widget/) enables us
61
 
62
  The [Statistics](https://wpstorelocator.co/add-ons/statistics/) add-on enables you to keep track of the locations users are searching for and see where there is demand for a new store.
63
 
64
- **Store Directory - Coming Soon**
65
 
66
- Generate a directory based on the store locations.
67
 
68
  == Installation ==
69
 
@@ -127,6 +127,10 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
127
 
128
  == Changelog ==
129
 
 
 
 
 
130
  = 2.2.233, July 10, 2020 =
131
  * Fixed: A problem with the [Borlabs Cookie](https://borlabs.io/borlabs-cookie/) plugin where Google Maps wasn't blocked correctly.
132
  * Changed: Set the loaded Google Maps JavaScript [version](https://developers.google.com/maps/documentation/javascript/versions) to quarterly. So every quarter it will automatically load the latest version.
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.1
8
+ Stable tag: 2.2.234
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
11
 
61
 
62
  The [Statistics](https://wpstorelocator.co/add-ons/statistics/) add-on enables you to keep track of the locations users are searching for and see where there is demand for a new store.
63
 
64
+ **Extenders**
65
 
66
+ The [Extenders](https://www.de-baat.nl/wp-store-locator/wp-store-locator-extenders/) add-on adds the features needed by power users such as managing location based events, social media information and locations managed by other logged in users.
67
 
68
  == Installation ==
69
 
127
 
128
  == Changelog ==
129
 
130
+ = 2.2.234, 23 January, 2021 =
131
+ * Fixed: PHP 8 Compatiblity
132
+ * Fixed: Polylang Compatiblity
133
+
134
  = 2.2.233, July 10, 2020 =
135
  * Fixed: A problem with the [Borlabs Cookie](https://borlabs.io/borlabs-cookie/) plugin where Google Maps wasn't blocked correctly.
136
  * Changed: Set the loaded Google Maps JavaScript [version](https://developers.google.com/maps/documentation/javascript/versions) to quarterly. So every quarter it will automatically load the latest version.
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.233
8
  Text Domain: wpsl
9
  Domain Path: /languages/
10
  License: GPL v3
@@ -24,7 +24,7 @@ GNU General Public License for more details.
24
 
25
  You should have received a copy of the GNU General Public License
26
  along with this program. If not, see <http://www.gnu.org/licenses/>.
27
-
28
  @package WP_Store_locator
29
  @category Core
30
  @author Tijmen Smit
@@ -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.233' );
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.234
8
  Text Domain: wpsl
9
  Domain Path: /languages/
10
  License: GPL v3
24
 
25
  You should have received a copy of the GNU General Public License
26
  along with this program. If not, see <http://www.gnu.org/licenses/>.
27
+
28
  @package WP_Store_locator
29
  @category Core
30
  @author Tijmen Smit
61
  public function define_constants() {
62
 
63
  if ( !defined( 'WPSL_VERSION_NUM' ) )
64
+ define( 'WPSL_VERSION_NUM', '2.2.234' );
65
 
66
  if ( !defined( 'WPSL_URL' ) )
67
  define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );