From fe1018b90d9fd4d6710bfd0baed4a443092c4654 Mon Sep 17 00:00:00 2001 From: joedolson Date: Mon, 23 Dec 2024 23:03:30 +0000 Subject: [PATCH] Themes: Add an ID to the block theme skip link. Add the ID `wp-skip-link` to the block theme generated skip link, so that block themes have a standardized target at the top of the `body` element. Props philliproth, audrasjb, debarghyabanerjee, sabernhardt, joedolson, apermo. Fixes #62311. Built from https://develop.svn.wordpress.org/trunk@59559 git-svn-id: http://core.svn.wordpress.org/trunk@58945 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme-templates.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme-templates.php b/wp-includes/theme-templates.php index c01a4ec672..55b9c8fac4 100644 --- a/wp-includes/theme-templates.php +++ b/wp-includes/theme-templates.php @@ -203,6 +203,7 @@ function wp_enqueue_block_template_skip_link() { // Create the skip link. skipLink = document.createElement( 'a' ); skipLink.classList.add( 'skip-link', 'screen-reader-text' ); + skipLink.id = 'wp-skip-link'; skipLink.href = '#' + skipLinkTargetID; skipLink.innerHTML = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 596b9d21ee..964ce7219c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59558'; +$wp_version = '6.8-alpha-59559'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.