Changeset 2207530
- Timestamp:
- 12/07/2019 06:50:08 AM (6 years ago)
- Location:
- map-my-posts/trunk
- Files:
-
- 2 edited
-
inc/MapMyPosts.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
map-my-posts/trunk/inc/MapMyPosts.php
r736334 r2207530 249 249 // enqueue the google loader when needed 250 250 if (self::$geochartcount || self::$gmapcount) { 251 wp_enqueue_script( 'google-jsapi', MAPMYPOSTS_REQUEST_PROTOCOL . 'www.google.com/jsapi' . $this->get_api_key('?key='), array(), null );251 wp_enqueue_script( 'google-jsapi', MAPMYPOSTS_REQUEST_PROTOCOL . 'www.google.com/jsapi', array(), null ); 252 252 } 253 253 } … … 266 266 ?> 267 267 <script type="text/javascript"> 268 google.load("visualization", "1", {packages: ["geochart"] });268 google.load("visualization", "1", {packages: ["geochart"], mapsApiKey: '<?= $this->get_api_key('') ?>'}); 269 269 <?php for ($i=1; $i<=self::$geochartcount; $i++): ?> 270 270 google.setOnLoadCallback(MMPGeochart<?php echo $i; ?>); … … 277 277 ?> 278 278 <script type="text/javascript"> 279 google.load('maps', '3', {other_params: ' sensor=false'});279 google.load('maps', '3', {other_params: '<?= $this->get_api_key('key=') ?>&sensor=false'}); 280 280 <?php for ($i=1; $i<=self::$gmapcount; $i++): ?> 281 281 google.setOnLoadCallback(MMPGmap<?php echo $i; ?>); -
map-my-posts/trunk/readme.txt
r1292273 r2207530 4 4 Tags: map, google maps, maps, mapping, geo, countries, locations, travel, geocode, geochart, latitude, longitude, widget, widgets 5 5 Requires at least: 3.0 6 Tested up to: 4.47 Stable tag: 1.0. 46 Tested up to: 5.3 7 Stable tag: 1.0.5 8 8 License: GPL-2.0+ 9 9 … … 53 53 == Changelog == 54 54 55 = 1.0.5 = Fixed issues with Google API Key 55 56 = 1.0.4 = Adjusted admin permissions. Spanish translation thanks to [Web Hosting Hub](http://www.webhostinghub.com/)! 56 57 = 1.0.3 = Fixed bug: shortcode not appearing in correct location on pages and posts.
Note: See TracChangeset
for help on using the changeset viewer.