-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Breadcrumb: Some code quality improvements #72873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Flaky tests detected in 79a08d2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19040777725
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
tyxla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, disregarding the above feedback, this tests well for paginated archives (category, post tag, custom taxonomy, author, year, month, date, custom post type archives) in my tests 👍
However, I noticed that we don't support paginated posts (content separated by page breaks):
Screen.Recording.2025-10-31.at.15.04.03.mov
This is something we should address separately - I've opened an issue for it in #72876.
1de7e07 to
4a535ff
Compare
983dcc3 to
8181192
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well and code LGTM 👍 Thanks!
(will need a rebase it seems)
8181192 to
79a08d2
Compare
What?
Follow up of: #72714
This PR addresses some feedback from there:
404toPage not foundpagedbreadcrumbs code not to do any string manipulation and handle each case explicitly. Some more helper functions could be considered there (maybe for getting the markup for the current item) but we can look into it after we've added the whole of the main functionality that is wanted. It'd be a simple change..Testing Instructions
404breadcrumb itempagedcases work exactly as before and as expected.