Plugin Directory

Changeset 2975120


Ignore:
Timestamp:
10/05/2023 10:13:31 AM (2 years ago)
Author:
cssigniterteam
Message:

Update to version 2.17.3 from GitHub

Location:
gutenbee
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gutenbee/tags/2.17.3/gutenbee.php

    r2948788 r2975120  
    66 * Author: The CSSIgniter Team
    77 * Author URI: https://www.cssigniter.com
    8  * Version: 2.17.2
     8 * Version: 2.17.3
    99 * Text Domain: gutenbee
    1010 * Domain Path: languages
     
    2626
    2727if ( ! defined( 'GUTENBEE_PLUGIN_VERSION' ) ) {
    28     define( 'GUTENBEE_PLUGIN_VERSION', '2.17.2' );
     28    define( 'GUTENBEE_PLUGIN_VERSION', '2.17.3' );
    2929}
    3030
     
    9595    $maps_api_key      = $gutenbee_settings['google_maps_api_key'];
    9696
    97     if ( $maps_api_key && has_block( 'gutenbee/google-maps' ) ) {
    98         wp_enqueue_script( 'gutenbee-google-maps', 'https://maps.googleapis.com/maps/api/js?key=' . $maps_api_key, array(), GUTENBEE_PLUGIN_VERSION, true );
    99     }
    100 
    101     $enqueue_css = false;
    102     $enqueue_js  = false;
     97    $enqueue_css      = false;
     98    $enqueue_js       = false;
     99    $enqueue_maps_api = false;
     100
    103101    foreach ( gutenbee_get_blocks_info() as $block_name => $block_info ) {
    104102        if ( has_block( $block_name ) || gutenbee_has_block_in_reusable( $block_name ) ) {
     
    109107                $enqueue_js = true;
    110108            }
     109            if ( 'gutenbee/google-maps' === $block_name ) {
     110                $enqueue_maps_api = true;
     111            }
    111112        }
     113    }
     114
     115    if ( $maps_api_key && apply_filters( 'gutenbee_enqueue_google_maps_api', $enqueue_maps_api ) ) {
     116        wp_enqueue_script( 'gutenbee-google-maps', 'https://maps.googleapis.com/maps/api/js?key=' . $maps_api_key, array(), GUTENBEE_PLUGIN_VERSION, true );
    112117    }
    113118
  • gutenbee/tags/2.17.3/readme.txt

    r2961105 r2975120  
    44Requires at least: 6.0
    55Tested up to: 6.3.0
    6 Stable tag: 2.17.2
     6Stable tag: 2.17.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licen2ses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 2.17.3 =
     80* Enqueueing of Google Maps API key is now filterable via 'gutenbee_enqueue_google_maps_api'
    7881
    7982= 2.17.2 =
  • gutenbee/trunk/gutenbee.php

    r2948788 r2975120  
    66 * Author: The CSSIgniter Team
    77 * Author URI: https://www.cssigniter.com
    8  * Version: 2.17.2
     8 * Version: 2.17.3
    99 * Text Domain: gutenbee
    1010 * Domain Path: languages
     
    2626
    2727if ( ! defined( 'GUTENBEE_PLUGIN_VERSION' ) ) {
    28     define( 'GUTENBEE_PLUGIN_VERSION', '2.17.2' );
     28    define( 'GUTENBEE_PLUGIN_VERSION', '2.17.3' );
    2929}
    3030
     
    9595    $maps_api_key      = $gutenbee_settings['google_maps_api_key'];
    9696
    97     if ( $maps_api_key && has_block( 'gutenbee/google-maps' ) ) {
    98         wp_enqueue_script( 'gutenbee-google-maps', 'https://maps.googleapis.com/maps/api/js?key=' . $maps_api_key, array(), GUTENBEE_PLUGIN_VERSION, true );
    99     }
    100 
    101     $enqueue_css = false;
    102     $enqueue_js  = false;
     97    $enqueue_css      = false;
     98    $enqueue_js       = false;
     99    $enqueue_maps_api = false;
     100
    103101    foreach ( gutenbee_get_blocks_info() as $block_name => $block_info ) {
    104102        if ( has_block( $block_name ) || gutenbee_has_block_in_reusable( $block_name ) ) {
     
    109107                $enqueue_js = true;
    110108            }
     109            if ( 'gutenbee/google-maps' === $block_name ) {
     110                $enqueue_maps_api = true;
     111            }
    111112        }
     113    }
     114
     115    if ( $maps_api_key && apply_filters( 'gutenbee_enqueue_google_maps_api', $enqueue_maps_api ) ) {
     116        wp_enqueue_script( 'gutenbee-google-maps', 'https://maps.googleapis.com/maps/api/js?key=' . $maps_api_key, array(), GUTENBEE_PLUGIN_VERSION, true );
    112117    }
    113118
  • gutenbee/trunk/readme.txt

    r2961105 r2975120  
    44Requires at least: 6.0
    55Tested up to: 6.3.0
    6 Stable tag: 2.17.2
     6Stable tag: 2.17.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licen2ses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 2.17.3 =
     80* Enqueueing of Google Maps API key is now filterable via 'gutenbee_enqueue_google_maps_api'
    7881
    7982= 2.17.2 =
Note: See TracChangeset for help on using the changeset viewer.