WordPress.org

Make WordPress Core

Ticket #10667: search.minimal.diff

File search.minimal.diff, 359 bytes (added by andy, 6 years ago)

Minimalistic approach to making search pluggable.

  • wp-includes/query.php

     
    17651765                                        $search .= " AND ($wpdb->posts.post_password = '') "; 
    17661766                        } 
    17671767                } 
     1768                $search = apply_filters('posts_search', $search, $this); 
    17681769 
    17691770                // Category stuff 
    17701771