Ticket #29418: 29418.diff
File 29418.diff, 758 bytes (added by , 5 years ago) |
---|
-
wp-includes/class-wp-query.php
2132 2132 // Do a fully inclusive search for currently registered post types of queried taxonomies 2133 2133 $post_type = array(); 2134 2134 $taxonomies = array_keys( $this->tax_query->queried_terms ); 2135 foreach ( get_post_types( array( 'exclude_from_search' => false )) as $pt ) {2135 foreach ( get_post_types() as $pt ) { 2136 2136 $object_taxonomies = $pt === 'attachment' ? get_taxonomies_for_attachments() : get_object_taxonomies( $pt ); 2137 2137 if ( array_intersect( $taxonomies, $object_taxonomies ) ) { 2138 2138 $post_type[] = $pt;