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
This commit is contained in:
parent
b2654a664e
commit
fe1018b90d
|
@ -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 = '<?php /* translators: Hidden accessibility text. */ esc_html_e( 'Skip to content' ); ?>';
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue