Make WordPress Core


Ignore:
Timestamp:
03/29/2013 09:06:37 PM (12 years ago)
Author:
markjaquith
Message:

Chat post format code cleanup.

see #23625. props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r23819 r23876  
    36273627 * @since 3.6.0
    36283628 *
    3629  * @param string $content Content to split
    3630  * @return array Paged content
     3629 * @param string $content Content to split.
     3630 * @return array Paged content.
    36313631 */
    36323632function paginate_content( $content ) {
    36333633    $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 );
    36373637}
    36383638
     
    36433643 *
    36443644 * @param string $content
     3645 * @param int $paged
    36453646 * @return string
    36463647 */
    3647 function get_paged_content( $content = null, $paged = null ) {
     3648function get_paged_content( $content = '', $paged = 0 ) {
    36483649    global $page;
    36493650    if ( empty( $page ) )
     
    36563657        $post = get_post();
    36573658        if ( empty( $post ) )
    3658             return;
     3659            return '';
    36593660
    36603661        $content = $post->post_content;
Note: See TracChangeset for help on using the changeset viewer.