Changeset 22722 for trunk/wp-includes/post.php
- Timestamp:
- 11/20/2012 06:31:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.