WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2018 07:38:51 PM (11 months ago)
Author:
youknowriad
Message:

Block Editor: Clarify PHP Docs of the block_version function.

Clarify the return value.

Props desrosj, mukesh27.
Fixes #45342.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/blocks.php

    r43888 r43924  
    284284 *
    285285 * @param string $content Content to test.
    286  * @return int The block format version.
     286 * @return int The block format version is 1 if the content contains one or more blocks, 0 otherwise.
    287287 */
    288288function block_version( $content ) {
Note: See TracChangeset for help on using the changeset viewer.