Make WordPress Core

Ticket #46471: 46471.1.diff

File 46471.1.diff, 683 bytes (added by garrett-eclipse, 7 years ago)

Minor grammar fix for the comment. 'it's' indicates 'it is', but the sentence needed 'it has' to read properly.

  • 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 has 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                }