From a724b435d84654501ac71fe526841673a4e344b6 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 9 Oct 2014 15:41:18 +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. Built from https://develop.svn.wordpress.org/trunk@29866 git-svn-id: http://core.svn.wordpress.org/trunk@29626 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f73b9666cd..eaa48edb5c 100644 --- a/wp-includes/taxonomy.php +++ b/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 = '') {