--- a/wp/wp-includes/theme-templates.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/theme-templates.php Fri Sep 05 18:52:52 2025 +0200
@@ -128,7 +128,6 @@
$skip_link_styles = '
.skip-link.screen-reader-text {
border: 0;
- clip: rect(1px,1px,1px,1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@@ -141,7 +140,6 @@
.skip-link.screen-reader-text:focus {
background-color: #eee;
- clip: auto !important;
clip-path: none;
color: #444;
display: block;
@@ -203,8 +201,9 @@
// 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' ); ?>';
+ skipLink.innerText = '<?php /* translators: Hidden accessibility text. Do not use HTML entities ( , etc.). */ esc_html_e( 'Skip to content' ); ?>';
// Inject the skip link.
sibling.parentElement.insertBefore( skipLink, sibling );