Changeset 42370
- Timestamp:
- 12/04/2017 09:57:28 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/category-template.php
r42369 r42370 1066 1066 */ 1067 1067 function get_tag_link( $tag ) { 1068 if ( ! is_object( $tag ) ) 1069 $tag = (int) $tag; 1070 1071 $tag = get_term_link( $tag, 'post_tag' ); 1072 1073 if ( is_wp_error( $tag ) ) 1074 return ''; 1075 1076 return $tag; 1068 return get_category_link( $tag ); 1077 1069 } 1078 1070
Note: See TracChangeset
for help on using the changeset viewer.