Changeset 17728
- Timestamp:
- 04/27/2011 09:25:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r17582 r17728 1580 1580 * @return string|null 1581 1581 */ 1582 function get_next_posts_link( $label = 'Next Page »', $max_page = 0 ) {1582 function get_next_posts_link( $label = null, $max_page = 0 ) { 1583 1583 global $paged, $wp_query; 1584 1584 … … 1590 1590 1591 1591 $nextpage = intval($paged) + 1; 1592 1593 if ( null === $label ) 1594 $label = __( 'Next Page »' ); 1592 1595 1593 1596 if ( !is_single() && ( $nextpage <= $max_page ) ) { … … 1606 1609 * @param int $max_page Optional. Max pages. 1607 1610 */ 1608 function next_posts_link( $label = 'Next Page »', $max_page = 0 ) {1611 function next_posts_link( $label = null, $max_page = 0 ) { 1609 1612 echo get_next_posts_link( $label, $max_page ); 1610 1613 } … … 1656 1659 * @return string|null 1657 1660 */ 1658 function get_previous_posts_link( $label = '« Previous Page') {1661 function get_previous_posts_link( $label = null ) { 1659 1662 global $paged; 1663 1664 if ( null === $label ) 1665 $label = __( '« Previous Page' ); 1660 1666 1661 1667 if ( !is_single() && $paged > 1 ) { … … 1673 1679 * @param string $label Optional. Previous page link text. 1674 1680 */ 1675 function previous_posts_link( $label = '« Previous Page') {1681 function previous_posts_link( $label = null ) { 1676 1682 echo get_previous_posts_link( $label ); 1677 1683 }
Note: See TracChangeset
for help on using the changeset viewer.