Make sure to replace all instances of :where(body) instead of just …#61602
Make sure to replace all instances of :where(body) instead of just …#61602tellthemachines merged 2 commits intotrunkfrom
:where(body) instead of just …#61602Conversation
|
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @simom, @rxbracho. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
|
Size Change: +61 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
andrewserong
left a comment
There was a problem hiding this comment.
|
I added one test, reasoning that checking for multiple instances of |
|
Thanks for that, the added test looks good to me! |
Mamaduka
left a comment
There was a problem hiding this comment.
Thank you, @tellthemachines!


…the first.
What?
Fixes #61565 and possibly also #61582.
The non-iframed editor all instances of
bodywith.editor-styles-wrapperin the editor styles. It also checks for:where(body), but because it was usingreplacewith a string instead of a regex, only the first instance was being replaced.This PR adds a regex with the global flag, so all instances of
:where(body)will be replaced.Testing Instructions