Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #64361


Ignore:
Timestamp:
12/05/2025 01:16:28 AM (2 months ago)
Author:
westonruter
Comment:

What's more is that I don't think this needs to use JavaScript at all anymore. The HTML API can be used to make the markup modifications. This could be done in get_the_block_template_html().

This was first introduced in r51003 (#53176) and was revisited in r56932 (#59505).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64361

    • Property Focuses javascript performance added
    • Property Component changed from General to Themes
    • Property Summary changed from Skip Link Minification to Leverage HTML API to implement block template skip link
    • Property Version changed from to 5.8
    • Property Milestone changed from Awaiting Review to 7.0
  • Ticket #64361 – Description

    initial v1  
    1 Hi,
     1When `the_block_template_skip_link()` (now `wp_enqueue_block_template_skip_link()`) was introduced in #53176 there was no HTML API which necessitated JavaScript to add the skip link. This can now be revisited to leverage `WP_HTML_Tag_Processor` to add the skip link.
     2
     3The inline JavaScript can then be eliminated.
     4
     5The CSS should also be minified.
     6
     7----
    28
    39Can skip link CSS/JS be minified?
    410
    511https://github.com/WordPress/wordpress-develop/blob/0b50baa5d164bedd17d3ae9e2eafc6286d6255b6/src/wp-includes/theme-templates.php#L172
    6 
    7 Kind regards