[wp-trac] [WordPress Trac] #21803: Add filter to make extending searching easier

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 17:04:59 UTC 2012


#21803: Add filter to make extending searching easier
-------------------------------------+------------------------------
 Reporter:  mark8barnes              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Query                    |     Version:  3.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by azaozz):

 Right, no need for the prefix there. Also a bit unsure of the user case
 for this: what other fields apart from the excerpt are searchable with
 LIKE? If it's only for `post_excerpt` perhaps it can be pre-set/limited to
 only title, content and excerpt. Then the filtered array can probably be:

 {{{
 $search_fields = array(
   'post_title' => true,
   'post_content' => true,
   'post_excerpt' => false
 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21803#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list