Update child layout selector to match core. #61777
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Syncing a change that was made in the core sync PR for grid and column spans.
Using
wp_unique_id
to generate the child layout classname number means that number will vary depending on how many timeswp_unique_id
has been used on the page before. This was causing the results of the test added in #61392 to be unpredictable, and also the classname of any given block on a page to be unpredictable, which could affect things like dynamic loading (see #55416).This PR changes the child layout classname to use
wp_unique_prefixed_id
instead.Testing Instructions
Nothing should have visibly changed, but if you
wp-container-content-1
(in trunk it'll bewp-container-content-2
because the duotone filter also useswp_unique_id
).Testing Instructions for Keyboard
Screenshots or screencast