Ticket #9911: query.php.2.diff
| File query.php.2.diff, 858 bytes (added by sirzooro, 21 months ago) |
|---|
-
query.php
old new 3555 3555 $more = 1; 3556 3556 $content = $post->post_content; 3557 3557 if ( strpos( $content, '<!--nextpage-->' ) ) { 3558 if ( $page > 1 )3559 $more = 1;3560 $multipage = 1;3561 3558 $content = str_replace("\n<!--nextpage-->\n", '<!--nextpage-->', $content); 3562 3559 $content = str_replace("\n<!--nextpage-->", '<!--nextpage-->', $content); 3563 3560 $content = str_replace("<!--nextpage-->\n", '<!--nextpage-->', $content); 3564 3561 $pages = explode('<!--nextpage-->', $content); 3565 $numpages = count($pages);3566 3562 } else { 3567 3563 $pages = array( $post->post_content ); 3564 } 3565 $pages = apply_filters( 'content_paginate', $pages ); 3566 $numpages = count( $pages ); 3567 if ( $numpages > 1 ) { 3568 if ( $page > 1 ) { 3569 $more = 1; 3570 } 3571 $multipage = 1; 3572 } else { 3568 3573 $multipage = 0; 3569 3574 } 3570 3575