Changeset 22722
- Timestamp:
- 11/20/2012 06:31:06 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
category-template.php (modified) (1 diff)
-
post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r22412 r22722 1063 1063 return false; 1064 1064 1065 if ( ! is_object_in_taxonomy( $post->post_type, $taxonomy ) )1066 return false;1067 1068 1065 $terms = get_object_term_cache( $post->ID, $taxonomy ); 1069 1066 if ( false === $terms ) { -
trunk/wp-includes/post.php
r22676 r22722 616 616 617 617 if ( 'post_category' == $key ) { 618 $terms = get_the_terms( $this, 'category' ); 619 if ( ! $terms ) 618 if ( is_object_in_taxonomy( $this->post_type, 'category' ) ) 619 $terms = get_the_terms( $this, 'category' ); 620 621 if ( empty( $terms ) ) 620 622 return array(); 621 623 … … 624 626 625 627 if ( 'tags_input' == $key ) { 626 $terms = get_the_terms( $this, 'post_tag' ); 627 if ( ! $terms ) 628 if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) ) 629 $terms = get_the_terms( $this, 'post_tag' ); 630 631 if ( empty( $terms ) ) 628 632 return array(); 629 633
Note: See TracChangeset
for help on using the changeset viewer.