diff --git src/wp-includes/blocks/site-logo.php src/wp-includes/blocks/site-logo.php
index f1819fcaac..29a10a26d7 100644
|
|
|
add_filter( 'pre_set_theme_mod_custom_logo', '_sync_custom_logo_to_site_logo' );
|
| 145 | 145 | * |
| 146 | 146 | * @param array $old_value Previous theme mod settings. |
| 147 | 147 | * @param array $value Updated theme mod settings. |
| | 148 | * |
| | 149 | * @global $_ignore_site_logo_changes |
| 148 | 150 | */ |
| 149 | 151 | function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) { |
| 150 | 152 | global $_ignore_site_logo_changes; |
| … |
… |
function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
|
| 161 | 163 | |
| 162 | 164 | /** |
| 163 | 165 | * Deletes the site logo when all theme mods are being removed. |
| | 166 | * @global $_ignore_site_logo_changes |
| 164 | 167 | */ |
| 165 | 168 | function _delete_site_logo_on_remove_theme_mods() { |
| 166 | 169 | global $_ignore_site_logo_changes; |
| … |
… |
add_action( 'setup_theme', '_delete_site_logo_on_remove_custom_logo_on_setup_the
|
| 189 | 192 | |
| 190 | 193 | /** |
| 191 | 194 | * Removes the custom_logo theme-mod when the site_logo option gets deleted. |
| | 195 | * @global $_ignore_site_logo_changes |
| 192 | 196 | */ |
| 193 | 197 | function _delete_custom_logo_on_remove_site_logo() { |
| 194 | 198 | global $_ignore_site_logo_changes; |
diff --git src/wp-includes/blocks/template-part.php src/wp-includes/blocks/template-part.php
index 8c01c5a4bc..a46891890f 100644
|
|
|
|
| 9 | 9 | * Renders the `core/template-part` block on the server. |
| 10 | 10 | * |
| 11 | 11 | * @param array $attributes The block attributes. |
| | 12 | * @global WP_Embed $wp_embed |
| 12 | 13 | * |
| 13 | 14 | * @return string The render. |
| 14 | 15 | */ |
diff --git src/wp-includes/blocks/widget-group.php src/wp-includes/blocks/widget-group.php
index 8c8584b296..13d881d66c 100644
|
|
|
|
| 11 | 11 | * @param array $attributes The block attributes. |
| 12 | 12 | * @param string $content The block content. |
| 13 | 13 | * @param WP_Block $block The block. |
| | 14 | * @global array $wp_registered_sidebars |
| | 15 | * @global array $_sidebar_being_rendered |
| 14 | 16 | * |
| 15 | 17 | * @return string Rendered block. |
| 16 | 18 | */ |
| … |
… |
add_action( 'init', 'register_block_core_widget_group' );
|
| 60 | 62 | * render_block_core_widget_group(). |
| 61 | 63 | * |
| 62 | 64 | * @param int|string $index Index, name, or ID of the dynamic sidebar. |
| | 65 | * @global array $_sidebar_being_rendered |
| 63 | 66 | */ |
| 64 | 67 | function note_sidebar_being_rendered( $index ) { |
| 65 | 68 | global $_sidebar_being_rendered; |
| … |
… |
add_action( 'dynamic_sidebar_before', 'note_sidebar_being_rendered' );
|
| 70 | 73 | /** |
| 71 | 74 | * Clear whatever we set in note_sidebar_being_rendered() after WordPress |
| 72 | 75 | * finishes rendering a sidebar. |
| | 76 | * @global array $_sidebar_being_rendered |
| 73 | 77 | */ |
| 74 | 78 | function discard_sidebar_being_rendered() { |
| 75 | 79 | global $_sidebar_being_rendered; |