diff --git a/app/Post/Singular.php b/app/Post/Singular.php index 40b3b97..2bf346f 100644 --- a/app/Post/Singular.php +++ b/app/Post/Singular.php @@ -96,6 +96,8 @@ private function addmap() private function enqueueScript() { if ( (isset($this->location_data['latitude'])) && (isset($this->location_data['longitude'])) ){ + wp_enqueue_script('google-maps'); + wp_enqueue_script('simple-locator'); wp_enqueue_script( 'simple-locator-single', \SimpleLocator\Helpers::plugin_url(). '/assets/js/simple-locator-single.js', diff --git a/app/SimpleLocator.php b/app/SimpleLocator.php index d7c9629..695f895 100644 --- a/app/SimpleLocator.php +++ b/app/SimpleLocator.php @@ -12,7 +12,7 @@ public static function init() $ls_env = 'live'; global $simple_locator_version; - $simple_locator_version = '1.0.2'; + $simple_locator_version = '1.0.3'; $app = new SimpleLocator\Bootstrap; } diff --git a/readme.txt b/readme.txt index 0355688..dc99221 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://locatewp.com/ Tags: location, store locator, google maps, store map Requires at least: 3.8 Tested up to: 4.1 -Stable tag: 1.0.2 +Stable tag: 1.0.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -74,6 +74,9 @@ The search form uses the Google Maps API geocoding service, which offers reliabl == Changelog == += 1.0.3 = +* Bug fix in singular post view map display + = 1.0.2 = * Bug fix in custom post type meta field selection @@ -86,6 +89,9 @@ The search form uses the Google Maps API geocoding service, which offers reliabl == Upgrade Notice == += 1.0.3 = +Bug fix in singular post view map display + = 1.0.2 = Bug fixes diff --git a/simplelocator.php b/simplelocator.php index 78682f9..831542e 100644 --- a/simplelocator.php +++ b/simplelocator.php @@ -3,7 +3,7 @@ Plugin Name: Simple Locator Plugin URI: http://locatewp.com/ Description: Location search in WordPress, made simple. Can be used for store or any other type of location. Simply add the shortcode [wp_simple_locator] to add the locator. -Version: 1.0.2 +Version: 1.0.3 Author: Kyle Phillips Author URI: https://github.com/kylephillips Text Domain: wpsimplelocator