mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 04:21:34 +01:00
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:
parent
3ab0f22ec6
commit
c749dc382f
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user