Plugin Directory

Changeset 2207530


Ignore:
Timestamp:
12/07/2019 06:50:08 AM (6 years ago)
Author:
epfantasia
Message:

v1.0.5 - fix for API keys

Location:
map-my-posts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map-my-posts/trunk/inc/MapMyPosts.php

    r736334 r2207530  
    249249        // enqueue the google loader when needed
    250250        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 );
    252252        }       
    253253    }
     
    266266?>
    267267<script type="text/javascript">
    268     google.load("visualization", "1", {packages: ["geochart"]});
     268    google.load("visualization", "1", {packages: ["geochart"], mapsApiKey: '<?= $this->get_api_key('') ?>'});
    269269    <?php for ($i=1; $i<=self::$geochartcount; $i++): ?>
    270270    google.setOnLoadCallback(MMPGeochart<?php echo $i; ?>);
     
    277277?>
    278278<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'});
    280280    <?php for ($i=1; $i<=self::$gmapcount; $i++): ?>
    281281    google.setOnLoadCallback(MMPGmap<?php echo $i; ?>);
  • map-my-posts/trunk/readme.txt

    r1292273 r2207530  
    44Tags: map, google maps, maps, mapping, geo, countries, locations, travel, geocode, geochart, latitude, longitude, widget, widgets
    55Requires at least: 3.0
    6 Tested up to: 4.4
    7 Stable tag: 1.0.4
     6Tested up to: 5.3
     7Stable tag: 1.0.5
    88License: GPL-2.0+
    99
     
    5353== Changelog ==
    5454
     55= 1.0.5 = Fixed issues with Google API Key
    5556= 1.0.4 = Adjusted admin permissions. Spanish translation thanks to [Web Hosting Hub](http://www.webhostinghub.com/)!
    5657= 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.