WordPress.org

Make WordPress Core

Ticket #7610: 7610.diff

File 7610.diff, 458 bytes (added by johnbillion, 10 years ago)
  • wp-includes/query.php

     
    17521752        if ( is_single() || is_page() || is_feed() )
    17531753                $more = 1;
    17541754        $content = $post->post_content;
    1755         if ( preg_match('/<!--nextpage-->/', $content) ) {
     1755        if ( strpos( $content, '<!--nextpage-->' ) ) {
    17561756                if ( $page > 1 )
    17571757                        $more = 1;
    17581758                $multipage = 1;