Changeset 27395 for trunk/src/wp-includes/query.php
- Timestamp:
- 03/04/2014 07:44:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r27304 r27395 2703 2703 } 2704 2704 2705 if ( isset( $q['post_password'] ) ) { 2706 $where .= $wpdb->prepare( " AND $wpdb->posts.post_password = %s", $q['post_password'] ); 2707 if ( empty( $q['perm'] ) ) { 2708 $q['perm'] = 'readable'; 2709 } 2710 } elseif ( isset( $q['has_password'] ) ) { 2711 $where .= sprintf( " AND $wpdb->posts.post_password %s ''", $q['has_password'] ? '!=' : '=' ); 2712 } 2713 2705 2714 if ( 'any' == $post_type ) { 2706 2715 $in_search_post_types = get_post_types( array('exclude_from_search' => false) );
Note: See TracChangeset
for help on using the changeset viewer.