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 {
|
| 4000 | 4000 | $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content ); |
| 4001 | 4001 | $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content ); |
| 4002 | 4002 | |
| | 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 | |
| 4003 | 4007 | // Ignore nextpage at the beginning of the content. |
| 4004 | 4008 | if ( 0 === strpos( $content, '<!--nextpage-->' ) ) |
| 4005 | 4009 | $content = substr( $content, 15 ); |