Make WordPress Core

Ticket #45342: 45342.2.patch

File 45342.2.patch, 515 bytes (added by mukesh27, 6 years ago)

Updated patch.

  • src/wp-includes/blocks.php

     
    283283 * @since 5.0.0
    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 ) {
    289289        return has_blocks( $content ) ? 1 : 0;