From cfac76a2cc603dac46a6da54b415fd7b838a3d6d Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Thu, 9 Oct 2014 15:40:53 +0000 Subject: [PATCH] Add more complete inline documentation for `get_term_link()`. Adds more complete parameter descriptions for the `$term` and `$taxonomy` parameters. Props amruta123.b for the initial patch. Fixes #29901. git-svn-id: https://develop.svn.wordpress.org/trunk@29866 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index f73b9666cd..eaa48edb5c 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -3633,12 +3633,12 @@ function _update_generic_term_count( $terms, $taxonomy ) { } /** - * Generates a permalink for a taxonomy term archive. + * Generate a permalink for a taxonomy term archive. * * @since 2.5.0 * - * @param object|int|string $term - * @param string $taxonomy (optional if $term is object) + * @param object|int|string $term The term object, ID, or slug whose link will be retrieved. + * @param string $taxonomy Optional. Taxonomy. Default empty. * @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 = '') {