Skip to content
Permalink
Browse files

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
  • Loading branch information...
youknowriad committed Nov 21, 2018
1 parent 47c4263 commit 8b3134f288f9431a12ecadce4090e33e5fe84d89
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 8b3134f

Please sign in to comment.
You can’t perform that action at this time.