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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-01-20 23:36:42 +00:00
parent 9ed96683ca
commit f8c83ed7d3
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;