Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Bail early if no content is given"
This reverts commit 41d13d0.
  • Loading branch information
ockham committed Dec 4, 2024
commit c6c848189a831f6f5c33984529e20d3d5c906ddc
4 changes: 0 additions & 4 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,6 @@ function set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_po
* @return string The serialized markup.
*/
function apply_block_hooks_to_content( $content, $context = null, $callback = 'insert_hooked_blocks' ) {
if ( ! $content ) {
return $content;
}

// Default to the current post if no context is provided.
if ( null === $context ) {
$context = get_post();
Expand Down