From 7d0d6672c4911e5ff389adc8ee7225f0c92a26ca Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Aug 2020 14:26:07 +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. Built from https://develop.svn.wordpress.org/trunk@48812 git-svn-id: http://core.svn.wordpress.org/trunk@48574 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index e4caf6b97a..aaf96a89d1 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -436,7 +436,7 @@ class WP_Admin_Bar { ?>
- +