Ticket #30406: 30406.patch
File 30406.patch, 1.7 KB (added by , 10 years ago) |
---|
-
src/wp-includes/link-template.php
1975 1975 * @since 2.0.10 1976 1976 * 1977 1977 * @param int $max_page Optional. Max pages. 1978 * @return string 1978 * @return string Link for next posts page. 1979 1979 */ 1980 1980 function get_next_posts_page_link($max_page = 0) { 1981 1981 global $paged; … … 1996 1996 * 1997 1997 * @param int $max_page Optional. Max pages. 1998 1998 * @param boolean $echo Optional. Echo or return; 1999 * @return string Link for next posts if $echo = false. 1999 2000 */ 2000 2001 function next_posts( $max_page = 0, $echo = true ) { 2001 2002 $output = esc_url( get_next_posts_page_link( $max_page ) ); … … 2013 2014 * 2014 2015 * @param string $label Content for link text. 2015 2016 * @param int $max_page Optional. Max pages. 2016 * @return string|null 2017 * @return string|null HTML formatted next posts page link. 2017 2018 */ 2018 2019 function get_next_posts_link( $label = null, $max_page = 0 ) { 2019 2020 global $paged, $wp_query; … … 2064 2065 * 2065 2066 * @since 2.0.10 2066 2067 * 2067 * @return string|null 2068 * @return string|null Link for previous posts page. 2068 2069 */ 2069 2070 function get_previous_posts_page_link() { 2070 2071 global $paged; … … 2083 2084 * @since 0.71 2084 2085 * 2085 2086 * @param boolean $echo Optional. Echo or return; 2087 * @return string Optional. Previous posts page link if $echo = false. 2086 2088 */ 2087 2089 function previous_posts( $echo = true ) { 2088 2090 $output = esc_url( get_previous_posts_page_link() ); … … 2099 2101 * @since 2.7.0 2100 2102 * 2101 2103 * @param string $label Optional. Previous page link text. 2102 * @return string|null 2104 * @return string|null HTML formatted previous page link. 2103 2105 */ 2104 2106 function get_previous_posts_link( $label = null ) { 2105 2107 global $paged;