WordPress.org

Make WordPress Core

Ticket #45401: pagination.patch

File pagination.patch, 577 bytes (added by youknowriad, 2 years ago)
  • src/wp-includes/blocks.php

     
    237237 * @return string Updated post content.
    238238 */
    239239function do_blocks( $content ) {
     240        $content = ltrim($content, '<!-- /wp:nextpage -->');
    240241        // If there are blocks in this content, we shouldn't run wpautop() on it later.
    241242        $priority = has_filter( 'the_content', 'wpautop' );
    242243        if ( false !== $priority && doing_filter( 'the_content' ) && has_blocks( $content ) ) {