Changeset 2601617
- Timestamp:
- 09/20/2021 09:09:41 AM (4 years ago)
- Location:
- wp-google-maps/trunk
- Files:
-
- 4 edited
-
js/v8/core.js (modified) (3 diffs)
-
js/v8/tables/datatable.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wpGoogleMaps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-google-maps/trunk/js/v8/core.js
r2592016 r2601617 104 104 */ 105 105 getScrollAnimationOffset: function() { 106 return (WPGMZA.settings.scroll_animation_offset || 0) + $("#wpadminbar").height();106 return (WPGMZA.settings.scroll_animation_offset || 0) + ($("#wpadminbar").height() || 0); 107 107 }, 108 108 … … 863 863 console.warn("Multiple jQuery versions detected: ", elements); 864 864 } 865 866 // Rest API867 WPGMZA.restAPI = WPGMZA.RestAPI.createInstance();868 if(WPGMZA.CloudAPI){869 WPGMZA.cloudAPI = WPGMZA.CloudAPI.createInstance();870 }871 865 872 866 // Array incorrectly extended warning … … 902 896 903 897 /** 904 * Set timeout has the same effect as an embedded $.ready call,898 * We use to use the win-the-race approach with set timeouts 905 899 * 906 * It's not ideal, our architecture should be more robust and not rely on win-the-race execution orders,900 * This caused immense issues with older versions of WP 907 901 * 908 * For now this will do the job, but V9 should really look at reworking this across the board into something that fires via events 902 * Instead, we call an anon-func, which queues on the ready call, this controls the queue without the need for timeouts 903 * 904 * While also maintaining the stack order, and the ability for consent plugins to stop ready calls early 909 905 */ 910 911 setTimeout(function(){ 912 $(document.body).trigger('preinit.wpgmza'); 913 }, 0); 914 915 916 setTimeout(function(){ 917 WPGMZA.initMaps(); 918 WPGMZA.onScroll(); 919 }, 0) 906 (function($){ 907 $(function(){ 908 WPGMZA.restAPI = WPGMZA.RestAPI.createInstance(); 909 if(WPGMZA.CloudAPI){ 910 WPGMZA.cloudAPI = WPGMZA.CloudAPI.createInstance(); 911 } 912 913 $(document.body).trigger('preinit.wpgmza'); 914 915 WPGMZA.initMaps(); 916 WPGMZA.onScroll(); 917 }); 918 })($); 920 919 921 920 }); -
wp-google-maps/trunk/js/v8/tables/datatable.js
r2462621 r2601617 45 45 this.wpgmzaDataTable = this; 46 46 47 this.useCompressedPathVariable = (WPGMZA.restAPI .isCompressedPathVariableSupported && WPGMZA.settings.enable_compressed_path_variables);47 this.useCompressedPathVariable = (WPGMZA.restAPI && WPGMZA.restAPI.isCompressedPathVariableSupported && WPGMZA.settings.enable_compressed_path_variables); 48 48 this.method = (this.useCompressedPathVariable ? "GET" : "POST"); 49 49 -
wp-google-maps/trunk/readme.txt
r2592016 r2601617 200 200 == Upgrade Notice == 201 201 202 = 8.1.16 = 203 Please update to 8.1.16 or above to ensure plugin stability. 204 202 205 = 8.1.13 = 203 206 Please update to 8.1.13 or above to ensure you are using the latest security enhancements. … … 219 222 220 223 == Changelog == 224 225 = 8.1.16 - 2021-09-20 = 226 * Fixed issue where map editor would not initialize on some older WordPress versions 227 * Fixed issue where admin bar scroll offset would sometimes be undefined 228 * Updated Real Cookie Banner integration, for improved stability 221 229 222 230 = 8.1.15 - 2021-09-01 = -
wp-google-maps/trunk/wpGoogleMaps.php
r2592016 r2601617 4 4 Plugin URI: https://www.wpgmaps.com 5 5 Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss. 6 Version: 8.1.1 56 Version: 8.1.16 7 7 Author: WP Google Maps 8 8 Author URI: https://www.wpgmaps.com … … 13 13 14 14 /* 15 * 8.1.16 - 2021-09-20 16 * Fixed issue where map editor would not initialize on some older WordPress versions 17 * Fixed issue where admin bar scroll offset would sometimes be undefined 18 * Updated Real Cookie Banner integration, for improved stability 19 * 15 20 * 8.1.15 - 2021-09-01 16 21 * Fixed issue where special symbols would be overprocessed by the KSES sanitizer
Note: See TracChangeset
for help on using the changeset viewer.