Changeset 14419
- Timestamp:
- 05/03/2010 10:22:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r14404 r14419 2161 2161 2162 2162 $exclude_post_types = ''; 2163 foreach ( get_post_types( array('exclude_from_search' => true) ) as $_wp_post_type ) 2164 $exclude_post_types .= $wpdb->prepare(" AND $wpdb->posts.post_type != %s", $_wp_post_type); 2163 $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 2164 if ( ! empty( $in_search_post_types ) ) 2165 $exclude_post_types .= $wpdb->prepare(" AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"); 2165 2166 2166 2167 if ( 'any' == $post_type ) {
Note: See TracChangeset
for help on using the changeset viewer.