mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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:
parent
9ed96683ca
commit
f8c83ed7d3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user