WordPress.org

Make WordPress Core

Ticket #11330: 11330.6.diff

File 11330.6.diff, 453 bytes (added by SergeyBiryukov, 6 years ago)
  • src/wp-includes/query.php

     
    24822482                // If a search pattern is specified, load the posts that match.
    24832483                if ( ! empty( $q['s'] ) ) {
    24842484                        $search = $this->parse_search( $q );
    2485                 } elseif ( ! $this->is_admin && $this->is_search ) {
    2486                         $search = ' AND 0';
    24872485                }
    24882486
    24892487                /**