-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Library: Fix archive block classes (#26349) #26364
Block Library: Fix archive block classes (#26349) #26364
Conversation
Possibly fixed by #26309? |
Interestingly, I still see a leading space when running tests on our (closed) CI system: #26309 (comment) 🤔 |
@fklein-lu, can you rebase this PR. It looks like the block's |
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.
I'm not very familiar with the php unit tests, but this seems fine to me. Thanks!
Hi, @fklein-lu Can you rebase this PR? I think we're good to merge. |
Description
Issue #26349 describes how Archive blocks have an extra space before the first class. So currently the output is
class=" wp-block-archives-list wp-block-archives"
.By using an array for constructing classes instead of string concatenation, this issue can be avoided.
This PR also fixes the escaping to always be late, and adds PHP unit tests for good measure.
How has this been tested?
Types of changes
Bug fix, no breaking changes.
Checklist: