inject_ignored_hooked_blocks_metadata_attributes( stdClass $changes, WP_REST_Request $deprecated = null ): stdClass|WP_Error
- Since
- 6.5.0
- Source
wp-includes/block-template-utils.php:1640
Description
Given an object that represents a wp_template or wp_template_part post object prepared for inserting or updating the database, locate all blocks that have hooked blocks, and inject a metadata.ignoredHookedBlocks attribute into the anchor blocks to reflect the latter.
Compatibility
- WordPress
- since 6.5.0
- PHP
- 7.4–8.6-dev
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3), and compiles on PHP 7.4 through 8.6-dev.
Parameters
$changesstdClass- An object representing a template or template part prepared for inserting or updating the database.
$deprecatedWP_REST_Requestoptional- Deprecated. Not used.Default:
null
Return value
stdClass|WP_Error- The updated object representing a template or template part.
Performance profile
How much work a call to inject_ignored_hooked_blocks_metadata_attributes() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Heavy
- Scaling
- Constant
- Instructions
- 47–187
- Plugin surface
- None
- Called by
- 0
Reaches the database via get_post().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 216.
Nothing here hands control to plugin code.
Nothing in core calls this; the cost is only what you spend yourself.
What it touches
- querycontent query
get_post()called directly - serializeserialisation
json_decode()called directly - hookthird-party callbacks
do_action()one call below inject_ignored_hooked_blocks_metadata_attributes() - cacheobject cache
wp_cache_add()one call below inject_ignored_hooked_blocks_metadata_attributes() - optionoption read or write
get_option()one call below inject_ignored_hooked_blocks_metadata_attributes()
Further down the call graph this can also reach transient. That is the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 120 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost inject_ignored_hooked_blocks_metadata_attributes() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && is_wp_error() | 47–50 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && is_wp_error() | 51–54 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() | 59–62 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && is_wp_error() | 63–68 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() | 63–66 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && is_wp_error() | 67–72 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 75–80 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && !empty($post) | 78–85 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 79–84 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && empty($post) | 82–89 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && !empty($post) | 88–95 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() | 90–97 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
108 further outcomes, up to 187 instructions
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 91–95 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && empty($post) | 92–99 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 94–103 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() | 94–101 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 95–99 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 98–102 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 98–107 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 99–105 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 99–103 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() | 100–107 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 102–106 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 103–109 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 103–107 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 104–113 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() | 104–111 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 106–112 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 106–110 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 106–115 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 107–113 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 107–113 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 108–117 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 110–116 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 110–114 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 110–119 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 111–117 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 111–117 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 114–120 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 114–120 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 115–123 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 115–121 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 116–125 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 118–124 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 118–124 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 119–127 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 119–125 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 120–129 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 122–130 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 122–128 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 122–130 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 123–131 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 126–134 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 126–132 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 126–134 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 127–135 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 129–137 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 130–138 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 130–140 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 130–138 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 132–140 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 133–141 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 134–142 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 134–144 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 134–142 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 136–144 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 137–147 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 137–145 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 138–148 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 138–148 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 139–147 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 140–150 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 140–148 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 141–151 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 141–149 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 142–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 142–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 143–151 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 144–154 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 144–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 145–155 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 145–155 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 146–158 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 146–156 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 147–157 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 147–155 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 148–158 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 148–158 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 149–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 149–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 150–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 150–160 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 151–161 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 151–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 152–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 152–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 153–165 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 153–163 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 154–166 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 155–165 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 155–165 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 156–168 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 156–166 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 157–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 157–167 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 158–170 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 159–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 159–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 160–172 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 160–170 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 161–173 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 163–175 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 163–173 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 164–176 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 165–177 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 167–179 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 167–177 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 168–180 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 171–183 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && !empty($hooked_blocks) && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 175–187 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 215 | 47–186 | 22 | 1 fewer instruction than PHP 8.5 |
| 8.5 | 216 | 47–187 | 22 | |
| 8.4 | 216 | 47–187 | 22 | |
| 8.3 | 216 | 47–187 | 22 | |
| 8.2 | 216 | 47–187 | 22 | |
| 8.1 | 216 | 47–187 | 22 | 4 fewer instructions than PHP 7.4 |
| 7.4 | 220 | 47–190 | 22 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Uses · 18
- _deprecated_argument()Marks a function argument as deprecated and inform when it has been used.
- get_hooked_blocks()Retrieves block types hooked into the given block, grouped by anchor block type and the relative position.
- has_filter()Checks if any filter has been registered for a hook.
- get_post()Retrieves post data given a post ID or post object.
- wp_is_post_revision()Determines if the specified post is a revision.
- get_the_terms()Retrieves the terms of the taxonomy that are attached to the post.
- is_wp_error()Checks whether the given variable is a WordPress Error.
- current_time()Retrieves the current time based on specified type.
- get_current_user_id()Gets the current user's ID.
- _build_block_template_object_from_post_object()Builds a block template object from a post object.
- get_post_meta()Retrieves a post meta field for the given post ID.
- get_comment_delimited_block_content()Returns the content of a block, including comment delimiters.
Show all 18
- apply_block_hooks_to_content()Runs the hooked blocks algorithm on the given content.
- remove_serialized_parent_block()Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks.
- extract_serialized_parent_block()Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the wrapper block.
- parse_blocks()Parses blocks out of a content string.
- wp_json_encode()Encodes a variable into JSON, with some confidence checks.
- WP_Post::__construct()Constructor.
Source code
function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated = null ) { if ( null !== $deprecated ) { _deprecated_argument( __FUNCTION__, '6.5.3' ); } if ( ! isset( $changes->post_content ) ) { return $changes; } $hooked_blocks = get_hooked_blocks(); if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) { return $changes; } $meta = isset( $changes->meta_input ) ? $changes->meta_input : array(); $terms = isset( $changes->tax_input ) ? $changes->tax_input : array(); if ( empty( $changes->ID ) ) { // There's no post object for this template in the database for this template yet. $post = $changes; } else { // Find the existing post object. $post = get_post( $changes->ID ); // If the post is a revision, use the parent post's post_name and post_type. $post_id = wp_is_post_revision( $post ); if ( $post_id ) { $parent_post = get_post( $post_id ); $post->post_name = $parent_post->post_name; $post->post_type = $parent_post->post_type; } // Apply the changes to the existing post object. $post = (object) array_merge( (array) $post, (array) $changes ); $type_terms = get_the_terms( $changes->ID, 'wp_theme' ); $terms['wp_theme'] = ! is_wp_error( $type_terms ) && ! empty( $type_terms ) ? $type_terms[0]->name : null; } // Required for the WP_Block_Template. Update the post object with the current time. $post->post_modified = current_time( 'mysql' ); // If the post_author is empty, set it to the current user. if ( empty( $post->post_author ) ) { $post->post_author = get_current_user_id(); } if ( 'wp_template_part' === $post->post_type && ! isset( $terms['wp_template_part_area'] ) ) { $area_terms = get_the_terms( $changes->ID, 'wp_template_part_area' ); $terms['wp_template_part_area'] = ! is_wp_error( $area_terms ) && ! empty( $area_terms ) ? $area_terms[0]->name : null; } $template = _build_block_template_object_from_post_object( new WP_Post( $post ), $terms, $meta ); if ( is_wp_error( $template ) ) { return $template; } if ( 'wp_template_part' === $post->post_type ) { $attributes = array(); $existing_ignored_hooked_blocks = isset( $post->ID ) ? get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true ) : ''; if ( ! empty( $existing_ignored_hooked_blocks ) ) { $attributes['metadata'] = array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ), ); } $content = get_comment_delimited_block_content( 'core/template-part', $attributes, $changes->post_content ); $content = apply_block_hooks_to_content( $content, $template, 'set_ignored_hooked_blocks_metadata' ); $changes->post_content = remove_serialized_parent_block( $content ); $wrapper_block_markup = extract_serialized_parent_block( $content ); $wrapper_block = parse_blocks( $wrapper_block_markup )[0]; $ignored_hooked_blocks = $wrapper_block['attrs']['metadata']['ignoredHookedBlocks'] ?? array(); if ( ! empty( $ignored_hooked_blocks ) ) {Changelog
Introduced in 6.5.0. Unchanged from 6.7.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.10 tag, from
src/wp-includes/block-template-utils.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.