WordPress.org

Make WordPress Core

Ticket #16745: 16745.2.patch

File 16745.2.patch, 749 bytes (added by hakre, 4 years ago)

Array'ed

  • wp-includes/query.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    35053505                if ( $page > 1 ) 
    35063506                        $more = 1; 
    35073507                $multipage = 1; 
    3508                 $content = str_replace("\n<!--nextpage-->\n", '<!--nextpage-->', $content); 
    3509                 $content = str_replace("\n<!--nextpage-->", '<!--nextpage-->', $content); 
    3510                 $content = str_replace("<!--nextpage-->\n", '<!--nextpage-->', $content); 
     3508                $content = str_replace(array("\n<!--nextpage-->", "<!--nextpage-->\n"), '<!--nextpage-->', $content); 
    35113509                $pages = explode('<!--nextpage-->', $content); 
    35123510                $numpages = count($pages); 
    35133511        } else {