diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 26f82f8624..1e7113e1d2 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -374,7 +374,8 @@ function unregister_block_type( $name ) { * * @see parse_blocks() * - * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. Defaults to global $post. + * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. + * Defaults to global $post. * @return bool Whether the post has blocks. */ function has_blocks( $post = null ) { @@ -392,15 +393,16 @@ function has_blocks( $post = null ) { * Determine whether a $post or a string contains a specific block type. * * This test optimizes for performance rather than strict accuracy, detecting - * the block type exists but not validating its structure. For strict accuracy, - * you should use the block parser on post content. + * whether the block type exists but not validating its structure and not checking + * reusable blocks. For strict accuracy, you should use the block parser on post content. * * @since 5.0.0 * * @see parse_blocks() * - * @param string $block_name Full Block type to look for. - * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. Defaults to global $post. + * @param string $block_name Full block type to look for. + * @param int|string|WP_Post|null $post Optional. Post content, post ID, or post object. + * Defaults to global $post. * @return bool Whether the post content contains the specified block. */ function has_block( $block_name, $post = null ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index ecd7551e36..4bd6e18eee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51045'; +$wp_version = '5.8-alpha-51046'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.