Remove dead code from get_next_posts_link(). Props filosofo. fixes #14850
git-svn-id: http://svn.automattic.com/wordpress/trunk@15817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd2896de77
commit
3706be0956
|
@ -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', '&$1', $label) . '</a>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue