Changeset 2207539
- Timestamp:
- 12/07/2019 07:24:11 AM (6 years ago)
- Location:
- map-my-posts/trunk
- Files:
-
- 4 edited
-
inc/MapMyPostsAdmin.php (modified) (1 diff)
-
js/admin-geocoder.js (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
start.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
map-my-posts/trunk/inc/MapMyPostsAdmin.php
r967483 r2207539 246 246 // load jsapi in header and load gmaps/geodecoder for use with views/edit-terms.php 247 247 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 ); 249 249 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 ); 250 258 $translate_array = array( 251 259 '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 3 1 jQuery(document).ready(function($) { 4 2 var geocoder; -
map-my-posts/trunk/readme.txt
r2207530 r2207539 5 5 Requires at least: 3.0 6 6 Tested up to: 5.3 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPL-2.0+ 9 9 … … 35 35 1. Download Map My Posts to `/wp-content/plugins/` directory and activate plugin. 36 36 1. 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) 38 38 1. 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. 39 39 1. Add one of the Map My Posts widgets to the sidebar, if desired. … … 53 53 == Changelog == 54 54 55 = 1.0.6 = Fixed admin category/tag geocoding 55 56 = 1.0.5 = Fixed issues with Google API Key 56 57 = 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 38 38 39 39 if ( !defined( 'MAPMYPOSTS_VERSION' ) ) { 40 define( 'MAPMYPOSTS_VERSION', '1.0. 4' );40 define( 'MAPMYPOSTS_VERSION', '1.0.6' ); 41 41 } 42 42 if ( !defined( 'MAPMYPOSTS_URL' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.