diff --git a/classes/ft-ps-client.php b/classes/ft-ps-client.php index ff04b62..ff598a4 100644 --- a/classes/ft-ps-client.php +++ b/classes/ft-ps-client.php @@ -102,7 +102,7 @@ function init_premium_support() { // Ping server for response if ( $request = wp_remote_post( $this->server_url, array( 'body' => $body, 'timeout' => 20 ) ) ) { - if ( isset( $request['response']['code'] ) && 200 == $request['response']['code'] ) { + if ( ! is_wp_error( $request ) && isset( $request['response']['code'] ) && 200 == $request['response']['code'] ) { // Response found a server, lets see if it hit a script we recognize $response = json_decode( $request['body'] ); diff --git a/classes/import-export.php b/classes/import-export.php index 908ff3c..6a4643e 100644 --- a/classes/import-export.php +++ b/classes/import-export.php @@ -501,7 +501,7 @@ public function import_csv() { echo '
'; - - - _e( 'If you are importing a file you exported from SimpleMap (and haven\'t changed since), be sure to check the box below since the locations are already geocoded.', 'SimpleMap' ); echo '
'; if ( '' == $options['api_key'] ) : ?> - API key if you need your locaitons geocoded.", 'SimpleMap' ), admin_url( "admin.php?page=simplemap" ) ); ?> + API key if you need your locations geocoded.", 'SimpleMap' ), admin_url( "admin.php?page=simplemap" ) ); ?> diff --git a/readme.txt b/readme.txt index 73d3892..b3fb102 100644 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ Contributors: hallsofmontezuma, fullthrottledevelopment Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=SimpleMap&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 Tags: map, maps, store locator, database, locations, stores, Google maps, locator Requires at least: 3.3 -Tested up to: 4.6 -Stable tag: 2.4.11 +Tested up to: 4.7 +Stable tag: 2.4.11.1 Easy to use Store Locator plugin (supports international stores) using Google Maps @@ -49,29 +49,7 @@ With SimpleMap, you can easily put a store locator on your WordPress site in sec == Frequently Asked Questions == -= How do I put SimpleMap on my website? = - -Simply insert the following shortcode into any page or post: `[simplemap]` - -= I've put in the shortcode, but my map isn't showing up. Why? = - -If the search form is showing up, but the map is blank, it's probably a Javascript error. Check to see if any other plugins are throwing Javascript errors before the SimpleMap Javascript gets loaded. - -= What is the "Special Location Label"? = - -This is meant to flag certain locations with a specific label. It shows up in the search results with a gold star next to it. Originally this was developed for an organization that wanted to highlight people that had been members for more than ten years. It could be used for something like that, or for "Favorite Spots," or "Free Wi-Fi," or anything you want. You can also leave it blank to disable it. - -= Why can't my map load more than 100 search results at a time? = - -On most browsers, loading more than 100 locations at once will really slow things down. In some cases, such as a slower internet connection, it can crash the browser completely. We put that limit on there to prevent that from happening. - -= Can I suggest a feature for SimpleMap? = - -Of course! Visit [the SimpleMap home page](http://simplemap-plugin.com/) to do so. - -= What if I have a problem with SimpleMap, or find a bug? = - -Please open a ticket on [the SimpleMap project's repo on Github](https://github.com/semperfiwebdesign/simplemap/issues) if you have a bug to report. Otherwise, you may access premium support inside the plugin dashboard. +FAQs can be found on our [website](http://simplemap-plugin.com/faqs/) == Changelog == diff --git a/simplemap.php b/simplemap.php index 3b6b476..b0a5fee 100644 --- a/simplemap.php +++ b/simplemap.php @@ -1,7 +1,7 @@