From 8b3134f288f9431a12ecadce4090e33e5fe84d89 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 21 Nov 2018 19:38:51 +0000 Subject: [PATCH] Block Editor: Clarify PHP Docs of the block_version function. Clarify the return value. Props desrosj, mukesh27. Fixes #45342. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43924 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 6e4924cd4d..6571676090 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -283,7 +283,7 @@ function _restore_wpautop_hook( $content ) { * @since 5.0.0 * * @param string $content Content to test. - * @return int The block format version. + * @return int The block format version is 1 if the content contains one or more blocks, 0 otherwise. */ function block_version( $content ) { return has_blocks( $content ) ? 1 : 0;