From 025eefe50e0d0f1051505aaa0c684f8fc8bf8824 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 17 Feb 2025 16:41:29 +0100 Subject: [PATCH] Remove use of `innerHTML` in `the_block_template_skip_link()`. --- src/wp-includes/theme-templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/theme-templates.php b/src/wp-includes/theme-templates.php index 55b9c8fac4990..b8c1e4c88d2e2 100644 --- a/src/wp-includes/theme-templates.php +++ b/src/wp-includes/theme-templates.php @@ -205,7 +205,7 @@ function wp_enqueue_block_template_skip_link() { skipLink.classList.add( 'skip-link', 'screen-reader-text' ); skipLink.id = 'wp-skip-link'; skipLink.href = '#' + skipLinkTargetID; - skipLink.innerHTML = ''; + skipLink.innerText = ''; // Inject the skip link. sibling.parentElement.insertBefore( skipLink, sibling );