Changeset 11106
- Timestamp:
- 04/28/2009 12:05:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r11086 r11106 1760 1760 $search .= " OR ($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')"; 1761 1761 1762 if ( !empty($search) ) 1762 if ( !empty($search) ) { 1763 1763 $search = " AND ({$search}) "; 1764 if ( !is_user_logged_in() ) 1765 $search .= " AND ($wpdb->posts.post_password = '') "; 1766 } 1764 1767 } 1765 1768
Note: See TracChangeset
for help on using the changeset viewer.