Make WordPress Core

Changeset 25867


Ignore:
Timestamp:
10/22/2013 05:20:17 PM (11 years ago)
Author:
nacin
Message:

Always apply the posts_search filter. Restores 3.6 behavior.

props SergeyBiryukov.
fixes #25664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r25689 r25867  
    19591959        }
    19601960
    1961         /**
    1962          * Filter the search SQL that is used in the WHERE clause of WP_Query.
    1963          *
    1964          * @since 3.0.0
    1965          *
    1966          * @param string   $search Search SQL for WHERE clause.
    1967          * @param WP_Query $this   The current WP_Query object.
    1968          */
    1969         return apply_filters_ref_array( 'posts_search', array( $search, &$this ) );
     1961        return $search;
    19701962    }
    19711963
     
    24282420        if ( ! empty( $q['s'] ) )
    24292421            $search = $this->parse_search( $q );
     2422
     2423        /**
     2424         * Filter the search SQL that is used in the WHERE clause of WP_Query.
     2425         *
     2426         * @since 3.0.0
     2427         *
     2428         * @param string   $search Search SQL for WHERE clause.
     2429         * @param WP_Query $this   The current WP_Query object.
     2430         */
     2431        $search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) );
    24302432
    24312433        // Taxonomies
Note: See TracChangeset for help on using the changeset viewer.