Simple Map - Version 2.14.7

Version Description

Download this release

Release Info

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

Code changes from version 2.14.6 to 2.14.7

Files changed (1) hide show
  1. simple-map.php +4 -5
simple-map.php CHANGED
@@ -115,12 +115,11 @@ class Simple_Map {
115
 
116
  echo "<style>.simplemap img{max-width:none !important;padding:0 !important;margin:0 !important;}.staticmap,.staticmap img{max-width:100% !important;height:auto !important;}.simplemap .simplemap-content{display:none;}</style>\n";
117
 
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
  }
115
 
116
  echo "<style>.simplemap img{max-width:none !important;padding:0 !important;margin:0 !important;}.staticmap,.staticmap img{max-width:100% !important;height:auto !important;}.simplemap .simplemap-content{display:none;}</style>\n";
117
 
118
+ $option = get_option( 'simple_map_settings', array() );
119
+ if ( isset( $option['api_key_field'] ) && ! empty( $option['api_key_field'] ) ) {
120
+ printf(
 
121
  "<script>var google_map_api_key = '%s';</script>",
122
+ esc_js( trim( $option['api_key_field'] ) )
123
  );
124
  }
125
  }