Skip to content
Prev Previous commit
Next Next commit
Return null by default.
  • Loading branch information
tellthemachines committed Sep 18, 2023
commit b4e92428c3407a1b2daeeddadf3692f59bb63ea2
3 changes: 2 additions & 1 deletion src/wp-includes/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ function wp_get_first_block( $blocks, $block_name ) {
* Retrieves Post Content block attributes from the current post template.
*
* @since 6.3.0
* @since 6.4.0 return null by default and return empty array when Post Content block exists. but has no attributes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @since 6.4.0 return null by default and return empty array when Post Content block exists. but has no attributes.
* @since 6.4.0 return null by default or an empty array when the Post Content block exists. but has no attributes.

* @access private
*
* @global int $post_ID
Expand Down Expand Up @@ -462,7 +463,7 @@ function wp_get_post_content_block_attributes() {
}
}

return array();
return null;
}

/**
Expand Down