Changeset 2975120
- Timestamp:
- 10/05/2023 10:13:31 AM (2 years ago)
- Location:
- gutenbee
- Files:
-
- 4 edited
- 1 copied
-
tags/2.17.3 (copied) (copied from gutenbee/trunk)
-
tags/2.17.3/gutenbee.php (modified) (4 diffs)
-
tags/2.17.3/readme.txt (modified) (2 diffs)
-
trunk/gutenbee.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gutenbee/tags/2.17.3/gutenbee.php
r2948788 r2975120 6 6 * Author: The CSSIgniter Team 7 7 * Author URI: https://www.cssigniter.com 8 * Version: 2.17. 28 * Version: 2.17.3 9 9 * Text Domain: gutenbee 10 10 * Domain Path: languages … … 26 26 27 27 if ( ! defined( 'GUTENBEE_PLUGIN_VERSION' ) ) { 28 define( 'GUTENBEE_PLUGIN_VERSION', '2.17. 2' );28 define( 'GUTENBEE_PLUGIN_VERSION', '2.17.3' ); 29 29 } 30 30 … … 95 95 $maps_api_key = $gutenbee_settings['google_maps_api_key']; 96 96 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 103 101 foreach ( gutenbee_get_blocks_info() as $block_name => $block_info ) { 104 102 if ( has_block( $block_name ) || gutenbee_has_block_in_reusable( $block_name ) ) { … … 109 107 $enqueue_js = true; 110 108 } 109 if ( 'gutenbee/google-maps' === $block_name ) { 110 $enqueue_maps_api = true; 111 } 111 112 } 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 ); 112 117 } 113 118 -
gutenbee/tags/2.17.3/readme.txt
r2961105 r2975120 4 4 Requires at least: 6.0 5 5 Tested up to: 6.3.0 6 Stable tag: 2.17. 26 Stable tag: 2.17.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licen2ses/gpl-2.0.html … … 76 76 77 77 == Changelog == 78 79 = 2.17.3 = 80 * Enqueueing of Google Maps API key is now filterable via 'gutenbee_enqueue_google_maps_api' 78 81 79 82 = 2.17.2 = -
gutenbee/trunk/gutenbee.php
r2948788 r2975120 6 6 * Author: The CSSIgniter Team 7 7 * Author URI: https://www.cssigniter.com 8 * Version: 2.17. 28 * Version: 2.17.3 9 9 * Text Domain: gutenbee 10 10 * Domain Path: languages … … 26 26 27 27 if ( ! defined( 'GUTENBEE_PLUGIN_VERSION' ) ) { 28 define( 'GUTENBEE_PLUGIN_VERSION', '2.17. 2' );28 define( 'GUTENBEE_PLUGIN_VERSION', '2.17.3' ); 29 29 } 30 30 … … 95 95 $maps_api_key = $gutenbee_settings['google_maps_api_key']; 96 96 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 103 101 foreach ( gutenbee_get_blocks_info() as $block_name => $block_info ) { 104 102 if ( has_block( $block_name ) || gutenbee_has_block_in_reusable( $block_name ) ) { … … 109 107 $enqueue_js = true; 110 108 } 109 if ( 'gutenbee/google-maps' === $block_name ) { 110 $enqueue_maps_api = true; 111 } 111 112 } 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 ); 112 117 } 113 118 -
gutenbee/trunk/readme.txt
r2961105 r2975120 4 4 Requires at least: 6.0 5 5 Tested up to: 6.3.0 6 Stable tag: 2.17. 26 Stable tag: 2.17.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licen2ses/gpl-2.0.html … … 76 76 77 77 == Changelog == 78 79 = 2.17.3 = 80 * Enqueueing of Google Maps API key is now filterable via 'gutenbee_enqueue_google_maps_api' 78 81 79 82 = 2.17.2 =
Note: See TracChangeset
for help on using the changeset viewer.