Ticket #25664: 25664.patch
| File 25664.patch, 1.1 KB (added by , 13 years ago) |
|---|
-
src/wp-includes/query.php
1958 1958 $search .= " AND ($wpdb->posts.post_password = '') "; 1959 1959 } 1960 1960 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; 1970 1962 } 1971 1963 1972 1964 /** … … 2428 2420 if ( ! empty( $q['s'] ) ) 2429 2421 $search = $this->parse_search( $q ); 2430 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 ) ); 2432 2431 2433 // Taxonomies 2432 2434 if ( !$this->is_singular ) { 2433 2435 $this->parse_tax_query( $q );