[wp-trac] [WordPress Trac] #53368: Auto-generated skip-link gets added in classic templates and not just in block templates
WordPress Trac
noreply at wordpress.org
Wed Jun 9 08:25:57 UTC 2021
#53368: Auto-generated skip-link gets added in classic templates and not just in
block templates
--------------------------+-----------------------------
Reporter: aristath | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In https://core.trac.wordpress.org/changeset/51003 we introduced the
`the_block_template_skip_link` function which adds a skip-link for block
themes/templates. However, since the `block-templates` theme-support is
enabled by default and is opt-out, the skip-link gets added regardless of
whether we're on a block template or not.
A check should be added to properly detect if the current template is
block-template or not, and only add the skip-link when needed.
There is a PR in Gutenberg
(https://github.com/WordPress/gutenberg/pull/32451) so it should be
backported to core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53368>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list