WordPress.org

Make WordPress Core

Ticket #45401: 45401.diff

File 45401.diff, 796 bytes (added by pento, 2 years ago)
  • src/wp-includes/class-wp-query.php

    diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
    index a6c248a7bf..6d2cdfa391 100644
    a b class WP_Query { 
    40004000                        $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content );
    40014001                        $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content );
    40024002
     4003                        // Remove the nextpage block delimiters, to avoid invalid block structures in the split content.
     4004                        $content = str_replace( '<!-- wp:nextpage -->', '', $content );
     4005                        $content = str_replace( '<!-- /wp:nextpage -->', '', $content );
     4006
    40034007                        // Ignore nextpage at the beginning of the content.
    40044008                        if ( 0 === strpos( $content, '<!--nextpage-->' ) )
    40054009                                $content = substr( $content, 15 );