Changeset 21169
- Timestamp:
- 06/28/2012 08:28:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r20944 r21169 123 123 if ( $cats ) { 124 124 usort($cats, '_usort_terms_by_ID'); // order by ID 125 $category = $cats[0]->slug; 126 if ( $parent = $cats[0]->parent ) 125 $category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post ); 126 $category_object = get_term( $category_object, 'category' ); 127 $category = $category_object->slug; 128 if ( $parent = $category_object->parent ) 127 129 $category = get_category_parents($parent, false, '/', true) . $category; 128 130 }
Note: See TracChangeset
for help on using the changeset viewer.