Changeset 17437 for trunk/wp-includes/category-template.php
- Timestamp:
- 02/10/2011 08:17:54 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r17102 r17437 13 13 * @see get_term_link() 14 14 * 15 * @param int $category _id Category ID.16 * @return string |WP_Error Link on success, WP_Errorif category does not exist.17 */ 18 function get_category_link( $category _id) {19 return get_term_link( (int)$category_id, 'category');15 * @param int $category Category ID, object, or slug. 16 * @return string Link on success, empty string if category does not exist. 17 */ 18 function get_category_link( $category ) { 19 return get_term_link( $category, 'category' ); 20 20 } 21 21 … … 965 965 * @see get_term_link() 966 966 * 967 * @param int $tag_id Tag (term) ID.968 * @return string |WP_Error Link on success, WP_Errorif tag does not exist.969 */ 970 function get_tag_link( $tag _id) {971 return get_term_link( (int)$tag_id, 'post_tag');967 * @param object|string|int $tag Tag ID, object, or slug. 968 * @return string Link on success, empty string if tag does not exist. 969 */ 970 function get_tag_link( $tag ) { 971 return get_term_link( $tag, 'post_tag' ); 972 972 } 973 973
Note: See TracChangeset
for help on using the changeset viewer.