WordPress.org

Make WordPress Core

Ticket #16282: 16282.3.patch

File 16282.3.patch, 939 bytes (added by scribu, 7 years ago)

Further doc refinements

  • wp-includes/taxonomy.php

     
    28132813 * @uses apply_filters() For the post_tag Taxonomy, Calls 'tag_link' with tag link and tag ID as parameters.
    28142814 * @uses apply_filters() For the category Taxonomy, Calls 'category_link' filter on category link and category ID.
    28152815 *
    2816  * @param object|int|string $term
    2817  * @param string $taxonomy (optional if $term is object)
    2818  * @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist.
     2816 * @param object|int|string $term Term object, term_id or slug.
     2817 * @param string $taxonomy Optional if $term is object.
     2818 * @return string|WP_Error URL to taxonomy term archive on success, WP_Error if term not found.
    28192819 */
    28202820function get_term_link( $term, $taxonomy = '') {
    28212821        global $wp_rewrite;