Plugin Directory

Changeset 2207539


Ignore:
Timestamp:
12/07/2019 07:24:11 AM (6 years ago)
Author:
epfantasia
Message:

v1.0.6 - fix admin geocoding

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

Legend:

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

    r967483 r2207539  
    246246        // load jsapi in header and load gmaps/geodecoder for use with views/edit-terms.php
    247247        if ( $screen->id == 'edit-category' || $screen->id == 'edit-post_tag' ) {
    248             wp_enqueue_script( 'google-jsapi', MAPMYPOSTS_REQUEST_PROTOCOL . 'www.google.com/jsapi' . MapMyPosts::get_api_key('?key='), array(), null );
     248            wp_enqueue_script( 'google-jsapi', MAPMYPOSTS_REQUEST_PROTOCOL . 'www.google.com/jsapi', array(), null );
    249249            wp_enqueue_script( MAPMYPOSTS_PLUGIN_SLUG . '-admin-geocoder-script', MAPMYPOSTS_URL . 'js/admin-geocoder.js', array( 'jquery' ), MAPMYPOSTS_VERSION . '111' );
     250            function load_gmap_admin() {
     251                ?>
     252                <script type="text/javascript">             
     253                google.load('maps', '3', {other_params: '<?= MapMyPosts::get_api_key('key=') ?>&sensor=false'});
     254                </script>
     255                <?php
     256            }
     257            add_action( 'admin_footer', 'load_gmap_admin', 100 );
    250258            $translate_array = array(
    251259                'not_found' => __('Location not found! Please enter a different search term.', 'map-my-posts'),
  • map-my-posts/trunk/js/admin-geocoder.js

    r736245 r2207539  
    1 google.load('maps', '3', {other_params: 'sensor=false'});
    2 
    31jQuery(document).ready(function($) {
    42    var geocoder;
  • map-my-posts/trunk/readme.txt

    r2207530 r2207539  
    55Requires at least: 3.0
    66Tested up to: 5.3
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPL-2.0+
    99
     
    35351. Download Map My Posts to `/wp-content/plugins/` directory and activate plugin.
    36361. Go to the Map My Posts Settings Menu and enter Google API Key and specify defaults.
    37   * There is a courtesy limit of 25,000 Google Maps and Google Static Map requests per day. Google API keys are available through the [APIs console](https://code.google.com/apis/console)
     37  * There is a courtesy limit of 25,000 Google Maps, Geocoding API, and Google Static Map requests per day. Google API keys are available through the [APIs console](https://code.google.com/apis/console)
    38381. Under Posts->Categories or Posts->Tags, associate your existing taxonomy with locations. You can also add new categories or tags with locations for Map My Posts in this area.
    39391. Add one of the Map My Posts widgets to the sidebar, if desired.
     
    5353== Changelog ==
    5454
     55= 1.0.6 = Fixed admin category/tag geocoding
    5556= 1.0.5 = Fixed issues with Google API Key
    5657= 1.0.4 = Adjusted admin permissions. Spanish translation thanks to [Web Hosting Hub](http://www.webhostinghub.com/)!
  • map-my-posts/trunk/start.php

    r967485 r2207539  
    3838
    3939if ( !defined( 'MAPMYPOSTS_VERSION' ) ) {
    40     define( 'MAPMYPOSTS_VERSION', '1.0.4' );
     40    define( 'MAPMYPOSTS_VERSION', '1.0.6' );
    4141}
    4242if ( !defined( 'MAPMYPOSTS_URL' ) ) {
Note: See TracChangeset for help on using the changeset viewer.