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:1714
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
- 45–185
- 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 212.
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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && is_wp_error() | 45–48 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && is_wp_error() | 49–52 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() | 57–60 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && is_wp_error() | 61–66 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() | 61–64 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && is_wp_error() | 65–70 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 73–78 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) | 76–83 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 77–82 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) | 80–87 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) | 86–93 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() | 88–95 | 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 185 instructions
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 89–93 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) | 90–97 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 92–101 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() | 92–99 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 93–97 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 96–100 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 96–105 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 97–103 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 97–101 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() | 98–105 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 100–104 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 101–107 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 101–105 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 102–111 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() | 102–109 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 104–110 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 104–108 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 104–113 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 105–111 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 105–111 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 106–115 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 108–114 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 108–112 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 108–117 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 109–115 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 109–115 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 112–118 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 112–118 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 113–121 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 113–119 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 114–123 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 116–122 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 116–122 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 117–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_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 117–123 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 118–127 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 120–128 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 120–126 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 120–128 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 121–129 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 124–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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 124–130 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 124–132 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 125–133 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 127–135 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 128–136 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 128–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_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 128–136 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 131–139 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 132–140 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 132–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_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 135–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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 135–143 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 136–146 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 136–146 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 138–146 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 139–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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 142–150 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 143–153 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 143–153 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 144–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_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 145–153 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 148–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_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 149–157 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 151–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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 152–164 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 154–164 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 155–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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 158–168 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 159–171 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 161–171 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 162–174 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !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(), 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 165–175 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 166–178 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 169–181 | 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 && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 173–185 | 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 | 211 | 45–184 | 22 | 1 fewer instruction than PHP 8.5 |
| 8.5 | 212 | 45–185 | 22 | |
| 8.4 | 212 | 45–185 | 22 | |
| 8.3 | 212 | 45–185 | 22 | |
| 8.2 | 212 | 45–185 | 22 | |
| 8.1 | 212 | 45–185 | 22 | 2 fewer instructions than PHP 7.4 |
| 7.4 | 214 | 45–187 | 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 = $changes->meta_input ?? array(); $terms = $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 7.0.7 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.