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

git-svn-id: https://develop.svn.wordpress.org/trunk@15817 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-10-15 14:43:31 +00:00
parent d66fa94a75
commit fe2b97b594

View File

@ -1528,7 +1528,7 @@ function get_next_posts_link( $label = 'Next Page »', $max_page = 0 ) {
$nextpage = intval($paged) + 1;
if ( !is_single() && ( empty($paged) || $nextpage <= $max_page) ) {
if ( !is_single() && ( $nextpage <= $max_page ) ) {
$attr = apply_filters( 'next_posts_link_attributes', '' );
return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label) . '</a>';
}