Fix a copy/paste error in get_next_post_link() description and $format argument. props jim912, ounziw. fixes #25743.

git-svn-id: https://develop.svn.wordpress.org/trunk@25965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-10-28 11:05:26 +00:00
parent 267b476885
commit 5674a54940

View File

@ -1391,10 +1391,9 @@ function previous_post_link( $format = '« %link', $link = '%title', $in_sa
}
/**
* Get previous post link that is adjacent to the current post.
* Get next post link that is adjacent to the current post.
*
* @since 3.7.0
* @uses get_next_post_link()
*
* @param string $format Optional. Link anchor format.
* @param string $link Optional. Link permalink format.
@ -1403,7 +1402,7 @@ function previous_post_link( $format = '« %link', $link = '%title', $in_sa
* @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'.
* @return string
*/
function get_next_post_link( $format = '« %link', $link = '%title', $in_same_cat = false, $excluded_terms = '', $taxonomy = 'category' ) {
function get_next_post_link( $format = '%link »', $link = '%title', $in_same_cat = false, $excluded_terms = '', $taxonomy = 'category' ) {
return get_adjacent_post_link( $format, $link, $in_same_cat, $excluded_terms, false, $taxonomy );
}