WordPress.org

Make WordPress Core

Changeset 17341


Ignore:
Timestamp:
01/20/2011 11:36:42 PM (9 years ago)
Author:
nacin
Message:

Correct the @return for get_term_link. It always has been able to return WP_Error. props SergeyBiryukov, see #16282.

File:
1 edited

Legend:

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

    r17261 r17341  
    28162816 * @param object|int|string $term
    28172817 * @param string $taxonomy (optional if $term is object)
    2818  * @return string HTML link to taxonomy term archive
     2818 * @return string|WP_Error HTML link to taxonomy term archive on success, WP_Error if term does not exist.
    28192819 */
    28202820function get_term_link( $term, $taxonomy = '') {
Note: See TracChangeset for help on using the changeset viewer.