Changeset 30620
- Timestamp:
- 11/28/2014 12:17:27 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r30323 r30620 4559 4559 $page = 1; 4560 4560 4561 // Force full post content when viewing the permalink for the $post, or 4562 // when on an RSS feed. Otherwise respect the 'more' tag. 4561 /* 4562 * Force full post content when viewing the permalink for the $post, 4563 * or when on an RSS feed. Otherwise respect the 'more' tag. 4564 */ 4563 4565 if ( $post->ID === get_queried_object_id() && ( $this->is_page() || $this->is_single() ) ) { 4564 4566 $more = 1; … … 4576 4578 $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content ); 4577 4579 $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content ); 4580 4578 4581 // Ignore nextpage at the beginning of the content. 4579 4582 if ( 0 === strpos( $content, '<!--nextpage-->' ) ) 4580 4583 $content = substr( $content, 15 ); 4584 4581 4585 $pages = explode('<!--nextpage-->', $content); 4582 4586 $numpages = count($pages); … … 4591 4595 * 4592 4596 * @since 2.8.0 4593 * @since 4.1.0 Introduced $thisparameter.4597 * @since 4.1.0 Introduced `$this` parameter. 4594 4598 * 4595 4599 * @param WP_Post &$post The Post object (passed by reference).
Note: See TracChangeset
for help on using the changeset viewer.