diff --git src/wp-includes/blocks/site-logo.php src/wp-includes/blocks/site-logo.php
index f1819fcaac..29a10a26d7 100644
--- src/wp-includes/blocks/site-logo.php
+++ src/wp-includes/blocks/site-logo.php
@@ -145,6 +145,8 @@ add_filter( 'pre_set_theme_mod_custom_logo', '_sync_custom_logo_to_site_logo' );
  *
  * @param array $old_value Previous theme mod settings.
  * @param array $value     Updated theme mod settings.
+ * 
+ * @global $_ignore_site_logo_changes
  */
 function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
 	global $_ignore_site_logo_changes;
@@ -161,6 +163,7 @@ function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
 
 /**
  * Deletes the site logo when all theme mods are being removed.
+ * @global $_ignore_site_logo_changes
  */
 function _delete_site_logo_on_remove_theme_mods() {
 	global $_ignore_site_logo_changes;
@@ -189,6 +192,7 @@ add_action( 'setup_theme', '_delete_site_logo_on_remove_custom_logo_on_setup_the
 
 /**
  * Removes the custom_logo theme-mod when the site_logo option gets deleted.
+ * @global $_ignore_site_logo_changes
  */
 function _delete_custom_logo_on_remove_site_logo() {
 	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
--- src/wp-includes/blocks/template-part.php
+++ src/wp-includes/blocks/template-part.php
@@ -9,6 +9,7 @@
  * Renders the `core/template-part` block on the server.
  *
  * @param array $attributes The block attributes.
+ * @global WP_Embed $wp_embed
  *
  * @return string The render.
  */
diff --git src/wp-includes/blocks/widget-group.php src/wp-includes/blocks/widget-group.php
index 8c8584b296..13d881d66c 100644
--- src/wp-includes/blocks/widget-group.php
+++ src/wp-includes/blocks/widget-group.php
@@ -11,6 +11,8 @@
  * @param array    $attributes The block attributes.
  * @param string   $content The block content.
  * @param WP_Block $block The block.
+ * @global array $wp_registered_sidebars
+ * @global array $_sidebar_being_rendered
  *
  * @return string Rendered block.
  */
@@ -60,6 +62,7 @@ add_action( 'init', 'register_block_core_widget_group' );
  * render_block_core_widget_group().
  *
  * @param int|string $index       Index, name, or ID of the dynamic sidebar.
+ * @global array $_sidebar_being_rendered
  */
 function note_sidebar_being_rendered( $index ) {
 	global $_sidebar_being_rendered;
@@ -70,6 +73,7 @@ add_action( 'dynamic_sidebar_before', 'note_sidebar_being_rendered' );
 /**
  * Clear whatever we set in note_sidebar_being_rendered() after WordPress
  * finishes rendering a sidebar.
+ * @global array $_sidebar_being_rendered
  */
 function discard_sidebar_being_rendered() {
 	global $_sidebar_being_rendered;
