WordPress.org

Make WordPress Core

Ticket #14850: paged-dead-code.diff

File paged-dead-code.diff, 598 bytes (added by filosofo, 4 years ago)
  • wp-includes/link-template.php

     
    14801480 
    14811481        $nextpage = intval($paged) + 1; 
    14821482 
    1483         if ( !is_single() && ( empty($paged) || $nextpage <= $max_page) ) { 
     1483        if ( !is_single() && ( $nextpage <= $max_page ) ) { 
    14841484                $attr = apply_filters( 'next_posts_link_attributes', '' ); 
    14851485                return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label) . '</a>'; 
    14861486        }