Changeset 23876 for trunk/wp-includes/query.php
- Timestamp:
- 03/29/2013 09:06:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r23819 r23876 3627 3627 * @since 3.6.0 3628 3628 * 3629 * @param string $content Content to split 3630 * @return array Paged content 3629 * @param string $content Content to split. 3630 * @return array Paged content. 3631 3631 */ 3632 3632 function paginate_content( $content ) { 3633 3633 $content = str_replace( "\n<!--nextpage-->\n", '<!--nextpage-->', $content ); 3634 $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content );3635 $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content );3636 return explode( '<!--nextpage-->', $content );3634 $content = str_replace( "\n<!--nextpage-->", '<!--nextpage-->', $content ); 3635 $content = str_replace( "<!--nextpage-->\n", '<!--nextpage-->', $content ); 3636 return explode( '<!--nextpage-->', $content ); 3637 3637 } 3638 3638 … … 3643 3643 * 3644 3644 * @param string $content 3645 * @param int $paged 3645 3646 * @return string 3646 3647 */ 3647 function get_paged_content( $content = null, $paged = null) {3648 function get_paged_content( $content = '', $paged = 0 ) { 3648 3649 global $page; 3649 3650 if ( empty( $page ) ) … … 3656 3657 $post = get_post(); 3657 3658 if ( empty( $post ) ) 3658 return ;3659 return ''; 3659 3660 3660 3661 $content = $post->post_content;
Note: See TracChangeset
for help on using the changeset viewer.