Changeset 22718
- Timestamp:
- 11/20/2012 05:33:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r22634 r22718 2225 2225 $taxonomies = wp_list_pluck( $this->tax_query->queries, 'taxonomy' ); 2226 2226 foreach ( get_post_types( array( 'exclude_from_search' => false ) ) as $pt ) { 2227 if ( array_intersect( $taxonomies, get_object_taxonomies( $pt ) ) ) 2227 $object_taxonomies = $pt === 'attachment' ? get_taxonomies_for_attachments() : get_object_taxonomies( $pt ); 2228 if ( array_intersect( $taxonomies, $object_taxonomies ) ) 2228 2229 $post_type[] = $pt; 2229 2230 }
Note: See TracChangeset
for help on using the changeset viewer.