Changeset 24599
- Timestamp:
- 07/09/2013 05:23:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r24598 r24599 3657 3657 $more = 1; 3658 3658 $content = $post->post_content; 3659 if ( strpos( $content, '<!--nextpage-->' ) ) {3659 if ( false !== strpos( $content, '<!--nextpage-->' ) ) { 3660 3660 if ( $page > 1 ) 3661 3661 $more = 1; … … 3663 3663 $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content ); 3664 3664 $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content ); 3665 // Ignore nextpage at the beginning of the content. 3666 if ( 0 === strpos( $content, '<!--nextpage-->' ) ) 3667 $content = substr( $content, 15 ); 3665 3668 $pages = explode('<!--nextpage-->', $content); 3666 3669 $numpages = count($pages);
Note: See TracChangeset
for help on using the changeset viewer.