Block Editor: Clarify PHP Docs of the block_version function.

Clarify the return value.

Props desrosj, mukesh27.
Fixes #45342.

Built from https://develop.svn.wordpress.org/branches/5.0@43924


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2018-11-21 19:39:49 +00:00
parent 3ab0f22ec6
commit c749dc382f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-beta5-43923';
$wp_version = '5.0-beta5-43924';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.