Simple Map - Version 2.14.6

Version Description

Download this release

Release Info

Developer miyauchi
Plugin Icon wp plugin Simple Map
Version 2.14.6
Comparing to
See all releases

Code changes from version 2.14.5 to 2.14.6

Files changed (2) hide show
  1. readme.txt +1 -1
  2. simple-map.php +5 -8
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: miyauchi
3
  Tags: google maps, map, shortcode, address
4
  Requires at least: 3.9
5
  Tested up to: 4.6
6
- Stable tag: 2.14.5
7
 
8
  Easy way to embed google map(s).
9
 
3
  Tags: google maps, map, shortcode, address
4
  Requires at least: 3.9
5
  Tested up to: 4.6
6
+ Stable tag: 2.14.6
7
 
8
  Easy way to embed google map(s).
9
 
simple-map.php CHANGED
@@ -4,7 +4,7 @@
4
  * Author: Takayuki Miyauchi
5
  * Plugin URI: https://github.com/miya0001/simple-map
6
  * Description: Insert google map convert from address.
7
- * Version: 2.14.5
8
  * Author URI: http://wpist.me/
9
  * Text Domain: simple-map
10
  * Domain Path: /languages
@@ -118,13 +118,10 @@ class Simple_Map {
118
  $option = get_option( 'simple_map_settings' );
119
  $apikey = trim( $option['api_key_field'] );
120
  if ( isset( $apikey ) && empty( $apikey ) ) {
121
- add_action( "wp_head", function() {
122
- $option = get_option( 'simple_map_settings' );
123
- echo sprintf(
124
- "<script>var google_map_api_key = '%s';</script>",
125
- esc_js( trim( $option['api_key_field'] ) )
126
- );
127
- } );
128
  }
129
  }
130
 
4
  * Author: Takayuki Miyauchi
5
  * Plugin URI: https://github.com/miya0001/simple-map
6
  * Description: Insert google map convert from address.
7
+ * Version: 2.14.6
8
  * Author URI: http://wpist.me/
9
  * Text Domain: simple-map
10
  * Domain Path: /languages
118
  $option = get_option( 'simple_map_settings' );
119
  $apikey = trim( $option['api_key_field'] );
120
  if ( isset( $apikey ) && empty( $apikey ) ) {
121
+ echo sprintf(
122
+ "<script>var google_map_api_key = '%s';</script>",
123
+ esc_js( trim( $apikey ) )
124
+ );
 
 
 
125
  }
126
  }
127