Correct the @return for get_term_link. It always has been able to return WP_Error. props SergeyBiryukov, see #16282.

git-svn-id: https://develop.svn.wordpress.org/trunk@17341 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-20 23:36:42 +00:00
parent 8924b5380c
commit b5d92c4354
1 changed files with 1 additions and 1 deletions

View File

@ -2815,7 +2815,7 @@ function _update_post_term_count( $terms, $taxonomy ) {
*
* @param object|int|string $term
* @param string $taxonomy (optional if $term is object)
* @return string HTML link to taxonomy term archive
* @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist.
*/
function get_term_link( $term, $taxonomy = '') {
global $wp_rewrite;