Weston Ruter
87bb5634ca
Themes: Use WP_HTML_Tag_Processor to insert the block template skip link instead of JavaScript.
...
* The skip link now works when JavaScript is turned off.
* By removing the script, the amount of JavaScript sent to the client is reduced for a very marginal performance improvement.
* A new `wp-block-template-skip-link` stylesheet is registered, with minification and `path` data for inlining.
* The CSS for the skip link now has an RTL version generated, although it is not yet served when the styles are inlined. See #61625 .
* The `wp_enqueue_block_template_skip_link()` function now exclusively enqueues the stylesheet since the script is removed.
* For backwards-compatibility, the skip link will continue to be omitted if `the_block_template_skip_link()` is unhooked from the `wp_footer` action or `wp_enqueue_block_template_skip_link()` is unhooked from `wp_enqueue_scripts`.
Developed in https://github.com/WordPress/wordpress-develop/pull/10676
Follow-up to [56932], [51003].
Props rutviksavsani, westonruter, dmsnell, whiteshadow01, Slieptsov.
See #59505 , #53176 .
Fixes #64361 .
Built from https://develop.svn.wordpress.org/trunk@61469
git-svn-id: http://core.svn.wordpress.org/trunk@60781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-11 06:36:49 +00:00
..
2025-12-17 15:29:38 +00:00
2026-01-05 12:16:10 +00:00
2025-10-17 17:39:30 +00:00
2024-09-13 05:37:16 +00:00
2026-01-05 06:31:29 +00:00
2026-01-06 10:50:06 +00:00
2026-01-05 13:43:03 +00:00
2025-11-06 19:33:31 +00:00
2026-01-11 06:36:49 +00:00
2026-01-05 05:41:32 +00:00
2025-12-30 13:03:34 +00:00
2025-12-03 17:27:31 +00:00
2025-11-17 22:22:33 +00:00
2025-11-10 22:24:34 +00:00
2026-01-09 04:28:52 +00:00
2026-01-11 06:36:49 +00:00
2025-07-18 12:59:31 +00:00
2026-01-10 23:52:47 +00:00
2026-01-06 05:57:56 +00:00
2026-01-10 05:03:50 +00:00
2025-10-16 19:45:36 +00:00
2024-11-26 21:17:25 +00:00
2025-12-30 22:55:37 +00:00
2025-10-02 23:55:33 +00:00
2025-09-17 14:44:24 +00:00
2025-12-26 13:16:34 +00:00
2026-01-05 05:33:32 +00:00
2025-11-04 16:34:38 +00:00
2025-11-13 22:27:29 +00:00
2025-10-02 18:15:30 +00:00
2025-09-03 12:18:31 +00:00
2026-01-09 02:40:53 +00:00
2025-10-20 08:52:24 +00:00
2026-01-05 05:24:33 +00:00
2025-12-03 19:47:33 +00:00
2026-01-05 05:24:33 +00:00
2026-01-11 06:36:49 +00:00
2026-01-05 05:24:33 +00:00
2025-03-19 23:15:35 +00:00
2025-08-31 21:43:30 +00:00
2025-04-29 22:44:37 +00:00
2025-11-04 18:31:29 +00:00
2026-01-06 05:57:56 +00:00
2026-01-09 02:40:53 +00:00
2025-01-24 23:28:23 +00:00
2024-09-30 22:50:19 +00:00
2025-01-22 19:48:25 +00:00
2025-08-25 13:10:29 +00:00
2024-09-17 21:08:16 +00:00
2024-10-25 20:26:20 +00:00
2024-09-30 22:50:19 +00:00
2025-01-21 21:26:23 +00:00
2025-04-03 13:53:28 +00:00
2025-10-06 11:31:33 +00:00
2025-09-28 21:56:27 +00:00
2025-08-07 14:47:34 +00:00
2026-01-05 05:24:33 +00:00
2025-10-21 07:14:02 +00:00
2024-09-20 01:55:35 +00:00
2025-10-21 07:14:02 +00:00
2025-12-03 19:47:33 +00:00
2025-12-03 19:47:33 +00:00
2026-01-08 23:45:59 +00:00
2025-10-06 11:31:33 +00:00
2025-03-04 13:06:27 +00:00
2024-09-20 02:07:12 +00:00
2026-01-05 05:24:33 +00:00
2025-09-29 16:29:35 +00:00
2026-01-05 05:24:33 +00:00
2026-01-05 05:24:33 +00:00
2026-01-05 05:24:33 +00:00
2025-12-22 23:14:38 +00:00
2025-02-11 13:40:30 +00:00
2025-09-07 02:47:36 +00:00
2025-12-22 23:14:38 +00:00
2026-01-05 05:41:32 +00:00
2025-01-22 19:48:25 +00:00
2024-10-13 19:09:12 +00:00
2026-01-05 05:41:32 +00:00
2026-01-05 05:41:32 +00:00
2026-01-10 05:03:50 +00:00
2025-12-07 04:16:33 +00:00
2025-12-07 04:16:33 +00:00
2026-01-09 04:28:52 +00:00
2026-01-05 16:04:58 +00:00
2026-01-05 16:04:58 +00:00
2024-09-27 19:28:14 +00:00
2024-10-22 10:16:16 +00:00
2025-07-30 23:03:30 +00:00
2024-09-30 22:50:19 +00:00
2026-01-09 04:28:52 +00:00
2026-01-05 05:58:26 +00:00
2025-09-03 12:18:31 +00:00
2026-01-05 05:58:26 +00:00
2025-12-22 23:14:38 +00:00
2026-01-10 05:03:50 +00:00
2026-01-05 05:58:26 +00:00
2025-09-03 12:18:31 +00:00
2025-08-26 21:05:30 +00:00
2025-12-16 20:21:37 +00:00
2025-05-11 17:16:30 +00:00
2025-02-25 22:40:22 +00:00
2026-01-06 06:08:03 +00:00
2025-10-21 15:59:33 +00:00
2025-06-18 20:39:52 +00:00
2025-12-22 23:14:38 +00:00
2024-09-13 22:12:15 +00:00
2025-04-04 22:00:27 +00:00
2025-06-24 23:40:33 +00:00
2026-01-06 05:36:58 +00:00
2025-10-01 13:23:28 +00:00
2025-10-21 04:33:29 +00:00
2026-01-10 05:03:50 +00:00
2025-08-20 15:01:31 +00:00
2026-01-08 00:49:56 +00:00
2026-01-07 16:48:03 +00:00
2025-02-17 11:24:21 +00:00
2025-02-23 11:11:21 +00:00
2025-11-25 02:00:36 +00:00
2025-12-23 21:20:31 +00:00
2025-12-22 20:20:33 +00:00
2026-01-06 05:14:55 +00:00
2025-02-11 11:14:21 +00:00
2025-09-16 22:47:31 +00:00
2025-01-22 19:48:25 +00:00
2025-12-22 23:14:38 +00:00
2025-06-27 15:09:32 +00:00
2025-11-23 05:08:29 +00:00
2026-01-10 05:03:50 +00:00
2025-06-16 17:08:31 +00:00
2025-03-26 21:42:27 +00:00
2025-12-22 23:14:38 +00:00
2026-01-06 06:08:03 +00:00
2025-01-22 19:48:25 +00:00
2024-11-20 02:50:24 +00:00
2025-12-22 15:57:37 +00:00
2026-01-05 05:24:33 +00:00
2026-01-09 04:28:52 +00:00
2025-02-18 22:32:22 +00:00
2025-07-06 11:57:35 +00:00
2025-12-16 20:21:37 +00:00
2025-02-17 11:24:21 +00:00
2025-12-16 20:21:37 +00:00
2026-01-05 05:33:32 +00:00
2026-01-10 05:29:48 +00:00
2026-01-06 06:08:03 +00:00
2025-12-03 20:54:33 +00:00
2025-10-21 14:00:27 +00:00
2026-01-05 05:53:29 +00:00
2025-10-21 14:03:27 +00:00
2026-01-09 11:47:48 +00:00
2025-12-16 20:21:37 +00:00
2024-09-30 23:58:16 +00:00
2026-01-05 12:16:10 +00:00
2025-01-22 19:48:25 +00:00
2026-01-09 04:28:52 +00:00
2026-01-09 02:26:54 +00:00
2026-01-06 05:36:58 +00:00
2025-01-22 19:48:25 +00:00
2025-09-16 22:47:31 +00:00
2025-10-09 22:05:40 +00:00
2026-01-05 06:04:33 +00:00
2026-01-10 05:29:48 +00:00
2025-12-22 20:45:31 +00:00
2025-12-22 20:45:31 +00:00
2026-01-10 05:03:50 +00:00
2026-01-06 05:14:55 +00:00
2025-08-20 12:55:28 +00:00
2025-02-24 13:43:23 +00:00
2026-01-10 21:47:47 +00:00
2025-09-11 10:13:27 +00:00
2026-01-09 02:40:53 +00:00
2026-01-06 05:36:58 +00:00
2025-09-28 23:40:35 +00:00
2026-01-10 05:03:50 +00:00
2026-01-10 05:03:50 +00:00
2025-01-22 19:48:25 +00:00
2025-12-26 13:16:34 +00:00
2025-10-17 17:14:32 +00:00
2025-10-27 16:35:36 +00:00
2025-05-26 11:20:35 +00:00
2025-08-27 13:42:30 +00:00
2025-06-27 15:09:32 +00:00
2025-01-22 19:48:25 +00:00
2026-01-10 06:38:56 +00:00
2026-01-06 06:08:03 +00:00
2025-02-03 19:52:24 +00:00
2026-01-09 11:47:48 +00:00
2025-11-03 23:47:33 +00:00
2026-01-10 05:29:48 +00:00
2026-01-06 06:08:03 +00:00
2024-12-20 23:35:23 +00:00
2026-01-06 06:08:03 +00:00
2025-08-31 21:43:30 +00:00
2026-01-05 04:33:34 +00:00
2026-01-06 06:08:03 +00:00
2026-01-06 05:57:56 +00:00
2025-09-03 12:18:31 +00:00
2026-01-11 06:36:49 +00:00
2026-01-05 12:16:10 +00:00
2026-01-05 06:04:33 +00:00
2025-08-27 10:34:28 +00:00
2026-01-06 06:08:03 +00:00
2025-10-15 17:14:39 +00:00
2025-11-04 19:51:35 +00:00
2026-01-05 12:16:10 +00:00
2026-01-05 16:04:58 +00:00
2026-01-11 06:36:49 +00:00
2026-01-05 12:16:10 +00:00
2026-01-10 05:03:50 +00:00
2026-01-09 02:48:51 +00:00
2026-01-06 05:57:56 +00:00
2025-10-21 02:35:31 +00:00
2025-01-22 19:48:25 +00:00
2026-01-11 06:36:49 +00:00
2026-01-10 18:30:59 +00:00
2025-01-22 19:48:25 +00:00