From 7d0dc26c96641eb32a84eeaf252229b18be5ac15 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Aug 2020 14:24:30 +0000 Subject: [PATCH] Accessibility: Toolbar: Don't output the "Skip to toolbar" link in modern themes that support the `wp_body_open` action. The links is unnecessary there, as the toolbar is the first thing in the DOM within the `` element. For themes that don't implement the `wp_body_open` action yet and render the admin bar in the footer, the "Skip to toolbar" link with `tabindex="1"` is still necessary, to ensure it's the first focusable element in the page. Props sarahricker, afercia, erikjandelange, audrasjb. Fixes #50702. git-svn-id: https://develop.svn.wordpress.org/trunk@48812 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-admin-bar.php b/src/wp-includes/class-wp-admin-bar.php index e4caf6b97a..aaf96a89d1 100644 --- a/src/wp-includes/class-wp-admin-bar.php +++ b/src/wp-includes/class-wp-admin-bar.php @@ -436,7 +436,7 @@ class WP_Admin_Bar { ?>
- +