-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] Latest PostsAffects the Latest Posts BlockAffects the Latest Posts Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
Description
When #51190 matched the front end to the editor, instead of matching the editor to the front end, it created two problems:
- All "Read more" links in the block have identical text, which goes against accessibility guidelines.
- By using the
excerpt_more
hook, on the standard priority, this replaces filters that themes have used to add custom unique links in place of the ellipsis. That includes the bundled themes from Twenty Thirteen to Twenty Nineteen and Twenty Twenty-One.
Related: Trac 59409
Step-by-step reproduction instructions
- Create several posts, each with a few paragraphs of text.
- Add a Latest Posts block, either in a template or within the content of a page. In the sidebar, toggle the Post content on and show the Excerpt.
- Activate Twenty Twenty-Three and visit a page with that Latest Posts block.
- Observe that the post excerpts end with the ellipsis (…) and "Read more" links.
- Check the text of the "Read more" links, and note that their accessible names are identical to each other. (You could inspect each element, or you might access the list of links with a screen reader or in a tool such as the WAVE browser extension.)
- Activate Twenty Twenty-One and return to the page you visited earlier.
- Check the text of "Read more" links again. With WordPress 6.2, these links showed "Continue reading" and included the post title as screen-reader-only text. In WordPress 6.3, that was replaced with the ellipsis and "Read more" links.
Screenshots, screen recording, code snippet
Twenty Twenty-Three had the bracketed ellipsis in WordPress 6.2
WordPress 6.3 added "Read more" links to each post excerpt
Twenty Twenty-One's "Continue reading" links applied to the post excerpts with the Latest Posts block in WordPress 6.2
WordPress 6.3 replaced the theme's text with "Read more" links
Environment info
WordPress 6.3, with or without Gutenberg 16.7.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Block] Latest PostsAffects the Latest Posts BlockAffects the Latest Posts Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release