Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Theme JSON: remove redundant styles check and relocate $selectors ass…
…ignment. In `WP_Theme_JSON::get_block_nodes()`, remove redundant check for `$theme_json['styles']`, which means `WP_Theme_JSON::get_blocks_metadata()` is only called if necessary. Also skip unnecessary `$selector` assignment if only nodes are to be returned. Props ramonopoly, mukesh27. Fixes #62234. git-svn-id: https://develop.svn.wordpress.org/trunk@59262 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information