Make WordPress Core

Ticket #29418: 29418.diff

File 29418.diff, 758 bytes (added by Howdy_McGee, 4 years ago)

Exclude Search Removed

  • wp-includes/class-wp-query.php

     
    21322132                                // Do a fully inclusive search for currently registered post types of queried taxonomies
    21332133                                $post_type  = array();
    21342134                                $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 ) {
    21362136                                        $object_taxonomies = $pt === 'attachment' ? get_taxonomies_for_attachments() : get_object_taxonomies( $pt );
    21372137                                        if ( array_intersect( $taxonomies, $object_taxonomies ) ) {
    21382138                                                $post_type[] = $pt;