Make WordPress Core

Changeset 15817


Ignore:
Timestamp:
10/15/2010 02:43:31 PM (15 years ago)
Author:
ryan
Message:

Remove dead code from get_next_posts_link(). Props filosofo. fixes #14850

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r15801 r15817  
    15291529    $nextpage = intval($paged) + 1;
    15301530
    1531     if ( !is_single() && ( empty($paged) || $nextpage <= $max_page) ) {
     1531    if ( !is_single() && ( $nextpage <= $max_page ) ) {
    15321532        $attr = apply_filters( 'next_posts_link_attributes', '' );
    15331533        return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.