Make WordPress Core

Ticket #58765: 58765.diff

File 58765.diff, 761 bytes (added by sabernhardt, 22 months ago)

switches innerHTML to innerText, adds to translator comment

  • src/wp-includes/theme-templates.php

     
    193193                skipLink = document.createElement( 'a' );
    194194                skipLink.classList.add( 'skip-link', 'screen-reader-text' );
    195195                skipLink.href = '#' + skipLinkTargetID;
    196                 skipLink.innerHTML = '<?php /* translators: Hidden accessibility text. */ esc_html_e( 'Skip to content' ); ?>';
     196                skipLink.innerText = '<?php /* translators: Hidden accessibility text. Do not use HTML entities (&nbsp;, etc.). */ esc_html_e( 'Skip to content' ); ?>';
    197197
    198198                // Inject the skip link.
    199199                sibling.parentElement.insertBefore( skipLink, sibling );