Changeset 13922
- Timestamp:
- 04/02/2010 12:07:59 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r13884 r13922 1460 1460 global $paged, $wp_query; 1461 1461 1462 if ( !$max_page ) {1462 if ( !$max_page ) 1463 1463 $max_page = $wp_query->max_num_pages; 1464 }1465 1464 1466 1465 if ( !$paged ) … … 1471 1470 if ( !is_single() && ( empty($paged) || $nextpage <= $max_page) ) { 1472 1471 $attr = apply_filters( 'next_posts_link_attributes', '' ); 1473 return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a>';1472 return '<a href="' . next_posts( $max_page, false ) . "\" $attr>" . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) . '</a>'; 1474 1473 } 1475 1474 } … … 1586 1585 if ( $max_num_pages > 1 ) { 1587 1586 $return = get_previous_posts_link($args['prelabel']); 1588 $return .= preg_replace('/&([^#])(?![a-z]{1,8};)/ ', '&$1', $args['sep']);1587 $return .= preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $args['sep']); 1589 1588 $return .= get_next_posts_link($args['nxtlabel']); 1590 1589 } … … 1675 1674 $label = __('Newer Comments »'); 1676 1675 1677 return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>'. preg_replace('/&([^#])(?![a-z]{1,8};)/ ', '&$1', $label) .'</a>';1676 return '<a href="' . esc_url( get_comments_pagenum_link( $nextpage, $max_page ) ) . '" ' . apply_filters( 'next_comments_link_attributes', '' ) . '>'. preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) .'</a>'; 1678 1677 } 1679 1678 … … 1712 1711 $label = __('« Older Comments'); 1713 1712 1714 return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/ ', '&$1', $label) .'</a>';1713 return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label) .'</a>'; 1715 1714 } 1716 1715
Note: See TracChangeset
for help on using the changeset viewer.