Skip to content
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

Theme JSON: get_block_nodes - relocate $selectors assignment #66265

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Oct 20, 2024

What? How? Why?

Backport from WordPress/wordpress-develop#7575

Skip $selector assignment if only nodes are to be returned. $selector isn't required in this case.

There is a slight performance boost:

See comment: WordPress/wordpress-develop#7575 (comment)

Testing Instructions

CI should pass.
Smoke test a block theme. All blocks styles should display as expected.

@ramonjd ramonjd added [Type] Code Quality Issues or PRs that relate to code quality No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core labels Oct 20, 2024
@ramonjd ramonjd self-assigned this Oct 20, 2024
Copy link

github-actions bot commented Oct 20, 2024

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ramonjd ramonjd merged commit 0b972a8 into trunk Oct 21, 2024
74 checks passed
@ramonjd ramonjd deleted the backport/get-block-nodes-selector-assignment branch October 21, 2024 04:38
@github-actions github-actions bot added this to the Gutenberg 19.6 milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Core Sync Required Indicates that any changes do not need to be synced to WordPress Core [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants