Repository navigation
Block Hooks API: Refactor Navigation to account for get_hooked_blocks_by_anchor_block - #62658
tjcafferkey wants to merge 3 commits into
Conversation
|
Flaky tests detected in 385d07b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9566832934
|
|
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 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. |
Related WordPress/wordpress-develop#6584
What?
Consolidated our approach to getting hooked blocks which means function signatures have changed for the visitor functions. So checking for the existence of
get_hooked_blocks_by_anchor_blockbefore using it.Why?
Because the function signatures of the visitor functions have now changed.
How?
Use
function_existsbefore executing code that depends on it.Testing Instructions
Follow the below stops for WordPress 6.5/6.6 to ensure no regressions have been introduced, and then again using latest
trunkofwordpress-developonce WordPress/wordpress-develop#6584 has been merged.functions.phpblock.jsonfile and retest starting from step 2.