Changeset 20622
- Timestamp:
- 04/27/2012 07:23:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r20549 r20622 154 154 function get_the_category_list( $separator = '', $parents='', $post_id = false ) { 155 155 global $wp_rewrite; 156 if ( ! is_object_in_taxonomy( get_post_type( $post_id ), 'category' ) ) 157 return apply_filters( 'the_category', '', $separator, $parents ); 158 156 159 $categories = get_the_category( $post_id ); 157 if ( !is_object_in_taxonomy( get_post_type( $post_id ), 'category' ) )158 return apply_filters( 'the_category', '', $separator, $parents );159 160 160 if ( empty( $categories ) ) 161 161 return apply_filters( 'the_category', __( 'Uncategorized' ), $separator, $parents );
Note: See TracChangeset
for help on using the changeset viewer.