Ticket #16746: 16746.2.patch
| File 16746.2.patch, 942 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
3647 3647 if ( is_single() || is_page() || is_feed() ) 3648 3648 $more = 1; 3649 3649 $content = $post->post_content; 3650 if ( strpos( $content, '<!--nextpage-->' ) ) {3650 if ( false !== strpos( $content, '<!--nextpage-->' ) ) { 3651 3651 if ( $page > 1 ) 3652 3652 $more = 1; 3653 3653 $multipage = 1; 3654 3654 $content = str_replace("\n<!--nextpage-->\n", '<!--nextpage-->', $content); 3655 3655 $content = str_replace("\n<!--nextpage-->", '<!--nextpage-->', $content); 3656 3656 $content = str_replace("<!--nextpage-->\n", '<!--nextpage-->', $content); 3657 // Ignore the nextpage tag at the beginning of content 3658 if ( 0 === strpos( $content, '<!--nextpage-->' ) ) 3659 $content = substr( $content, 15 ); 3657 3660 $pages = explode('<!--nextpage-->', $content); 3658 3661 $numpages = count($pages); 3659 3662 } else {