Changeset 25239 for trunk/src/wp-includes/query.php
- Timestamp:
- 09/04/2013 06:50:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r25238 r25239 2456 2456 if ( 'any' == $post_type ) { 2457 2457 $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 2458 if ( ! empty( $in_search_post_types ) ) 2458 if ( empty( $in_search_post_types ) ) 2459 $where .= ' AND 1=0 '; 2460 else 2459 2461 $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"; 2460 2462 } elseif ( !empty( $post_type ) && is_array( $post_type ) ) {
Note: See TracChangeset
for help on using the changeset viewer.