Make WordPress Core

Ticket #46471: 46471.diff

File 46471.diff, 681 bytes (added by lukecarbis, 7 years ago)
  • src/wp-includes/post-template.php

     
    297297        $content = $pages[ $page - 1 ];
    298298        if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
    299299                $content = explode( $matches[0], $content, 2 );
     300
     301                // Remove the core/more block tags now that it's been split up.
     302                $content = preg_replace( '/<!-- \/?wp:more(.*?) -->/', '', $content );
     303
    300304                if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) ) {
    301305                        $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
    302306                }