Ticket #35601: 35601.diff
| File 35601.diff, 907 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/query.php
3036 3036 $where .= sprintf( " AND $wpdb->posts.post_password %s ''", $q['has_password'] ? '!=' : '=' ); 3037 3037 } 3038 3038 3039 if ( isset( $q['comment_status'] ) && in_array( (string) $q['comment_status'], array( 'open', 'closed' ) ) ) { 3040 $where .= $wpdb->prepare( " AND $wpdb->posts.comment_status = %s ", $q['comment_status'] ); 3041 } 3042 3043 if ( isset( $q['ping_status'] ) && in_array( (string) $q['ping_status'], array( 'open', 'closed' ) ) ) { 3044 $where .= $wpdb->prepare( " AND $wpdb->posts.ping_status = %s ", $q['ping_status'] ); 3045 } 3046 3039 3047 if ( 'any' == $post_type ) { 3040 3048 $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 3041 3049 if ( empty( $in_search_post_types ) )
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)