Ticket #18752: 18752.3.diff
File 18752.3.diff, 626 bytes (added by , 12 years ago) |
---|
-
wp-includes/link-template.php
122 122 $cats = get_the_category($post->ID); 123 123 if ( $cats ) { 124 124 usort($cats, '_usort_terms_by_ID'); // order by ID 125 $category = $cats[0]->slug; 125 $category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post ); 126 $category = $category_object->slug; 126 127 if ( $parent = $cats[0]->parent ) 127 128 $category = get_category_parents($parent, false, '/', true) . $category; 128 129 }