Changeset 19078 for trunk/wp-includes/query.php
- Timestamp:
- 10/28/2011 08:03:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r18995 r19078 2386 2386 } 2387 2387 2388 $exclude_post_types = '';2389 $in_search_post_types = get_post_types( array('exclude_from_search' => false) );2390 if ( ! empty( $in_search_post_types ) )2391 $exclude_post_types .= $wpdb->prepare(" AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')");2392 2393 2388 if ( 'any' == $post_type ) { 2394 $where .= $exclude_post_types; 2389 $exclude_post_types = ''; 2390 $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 2391 if ( ! empty( $in_search_post_types ) ) 2392 $where .= $wpdb->prepare(" AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"); 2395 2393 } elseif ( !empty( $post_type ) && is_array( $post_type ) ) { 2396 2394 $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')";
Note: See TracChangeset
for help on using the changeset viewer.