Ticket #11330: 11330.5.diff
| File 11330.5.diff, 740 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/query.php
1512 1512 } else { 1513 1513 // Look for archive queries. Dates, categories, authors, search, post type archives. 1514 1514 1515 if ( ! is_admin() &isset( $this->query['s'] ) ) {1515 if ( isset( $this->query['s'] ) ) { 1516 1516 $this->is_search = true; 1517 1517 } 1518 1518 … … 2482 2482 // If a search pattern is specified, load the posts that match. 2483 2483 if ( ! empty( $q['s'] ) ) { 2484 2484 $search = $this->parse_search( $q ); 2485 } elseif ( $this->is_search ) {2485 } elseif ( ! $this->is_admin && $this->is_search ) { 2486 2486 $search = ' AND 0'; 2487 2487 } 2488 2488