WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2014 03:40:53 PM (7 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r29865 r29866  
    36343634
    36353635/**
    3636  * Generates a permalink for a taxonomy term archive.
     3636 * Generate a permalink for a taxonomy term archive.
    36373637 *
    36383638 * @since 2.5.0
    36393639 *
    3640  * @param object|int|string $term
    3641  * @param string $taxonomy (optional if $term is object)
     3640 * @param object|int|string $term     The term object, ID, or slug whose link will be retrieved.
     3641 * @param string            $taxonomy Optional. Taxonomy. Default empty.
    36423642 * @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist.
    36433643 */
Note: See TracChangeset for help on using the changeset viewer.