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
This commit is contained in:
Riad Benguella 2018-11-21 19:38:51 +00:00
parent 47c42639aa
commit 8b3134f288

View File

@ -283,7 +283,7 @@ function _restore_wpautop_hook( $content ) {
* @since 5.0.0 * @since 5.0.0
* *
* @param string $content Content to test. * @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 ) { function block_version( $content ) {
return has_blocks( $content ) ? 1 : 0; return has_blocks( $content ) ? 1 : 0;