wp/wp-includes/class-wp-admin-bar.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-includes/class-wp-admin-bar.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/class-wp-admin-bar.php	Wed Sep 21 18:19:35 2022 +0200
@@ -243,7 +243,9 @@
 	}
 
 	/**
-	 * Add a group to a menu node.
+	 * Add a group to a toolbar menu node.
+	 *
+	 * Groups can be used to organize toolbar items into distinct sections of a toolbar menu.
 	 *
 	 * @since 3.3.0
 	 *
@@ -436,7 +438,7 @@
 
 		?>
 		<div id="wpadminbar" class="<?php echo $class; ?>">
-			<?php if ( ! is_admin() ) { ?>
+			<?php if ( ! is_admin() && ! did_action( 'wp_body_open' ) ) { ?>
 				<a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
 			<?php } ?>
 			<div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>">