Make WordPress Core


Ignore:
Timestamp:
11/17/2010 05:10:50 PM (14 years ago)
Author:
nacin
Message:

get_tag_link and get_category_link can also return WP_Error. fixes #15449.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r16395 r16430  
    1414 *
    1515 * @param int $category_id Category ID.
    16  * @return string
     16 * @return string|WP_Error Link on success, WP_Error if category does not exist.
    1717 */
    1818function get_category_link( $category_id ) {
     
    960960 *
    961961 * @param int $tag_id Tag (term) ID.
    962  * @return string
     962 * @return string|WP_Error Link on success, WP_Error if tag does not exist.
    963963 */
    964964function get_tag_link( $tag_id ) {
Note: See TracChangeset for help on using the changeset viewer.