mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
47c42639aa
commit
8b3134f288
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user