Make WordPress Core

Ticket #45342: 45342.patch

File 45342.patch, 503 bytes (added by mukesh27, 6 years ago)

Patch

  • wordpress/wp-includes/blocks.php

    diff -Naur wordpress/wp-includes/blocks.php wordpress/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 0 if the string doesn't contain blocks, 1 otherwise.
    287287 */
    288288function block_version( $content ) {
    289289        return has_blocks( $content ) ? 1 : 0;