Plugin Directory

Changeset 2601617


Ignore:
Timestamp:
09/20/2021 09:09:41 AM (4 years ago)
Author:
WPGMaps
Message:

8.1.16 - 2021-09-20

  • Fixed issue where map editor would not initialize on some older WordPress versions
  • Fixed issue where admin bar scroll offset would sometimes be undefined
  • Updated Real Cookie Banner integration, for improved stability
Location:
wp-google-maps/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-google-maps/trunk/js/v8/core.js

    r2592016 r2601617  
    104104         */
    105105        getScrollAnimationOffset: function() {
    106             return (WPGMZA.settings.scroll_animation_offset || 0) + $("#wpadminbar").height();
     106            return (WPGMZA.settings.scroll_animation_offset || 0) + ($("#wpadminbar").height() || 0);
    107107        },
    108108       
     
    863863            console.warn("Multiple jQuery versions detected: ", elements);
    864864        }
    865        
    866         // Rest API
    867         WPGMZA.restAPI  = WPGMZA.RestAPI.createInstance();
    868         if(WPGMZA.CloudAPI){
    869             WPGMZA.cloudAPI = WPGMZA.CloudAPI.createInstance();
    870         }
    871865
    872866        // Array incorrectly extended warning
     
    902896
    903897    /**
    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
    905899     *
    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
    907901     *
    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
    909905    */
    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    })($);
    920919
    921920});
  • wp-google-maps/trunk/js/v8/tables/datatable.js

    r2462621 r2601617  
    4545        this.wpgmzaDataTable    = this;
    4646       
    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);
    4848        this.method = (this.useCompressedPathVariable ? "GET" : "POST");
    4949       
  • wp-google-maps/trunk/readme.txt

    r2592016 r2601617  
    200200== Upgrade Notice ==
    201201
     202= 8.1.16 =
     203Please update to 8.1.16 or above to ensure plugin stability.
     204
    202205= 8.1.13 =
    203206Please update to 8.1.13 or above to ensure you are using the latest security enhancements.
     
    219222
    220223== 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
    221229
    222230= 8.1.15 - 2021-09-01 =
  • wp-google-maps/trunk/wpGoogleMaps.php

    r2592016 r2601617  
    44Plugin URI: https://www.wpgmaps.com
    55Description: 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.15
     6Version: 8.1.16
    77Author: WP Google Maps
    88Author URI: https://www.wpgmaps.com
     
    1313
    1414/*
     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 *
    1520 * 8.1.15 - 2021-09-01
    1621 * Fixed issue where special symbols would be overprocessed by the KSES sanitizer
Note: See TracChangeset for help on using the changeset viewer.