[wp-trac] [WordPress Trac] #20487: Comment search isn't customizable

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 21:11:40 UTC 2012


#20487: Comment search isn't customizable
-----------------------------------+------------------------------
 Reporter:  brokentone             |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Comments               |     Version:  3.2.1
 Severity:  normal                 |  Resolution:
 Keywords:  needs-patch has-patch  |
-----------------------------------+------------------------------

Comment (by scribu):

 Well, for one thing, we should have a whitelist of searchable columns in
 get_search_sql() and you should pass `$this->query_vars['search_field']`
 ''into'' get_search_sql() as the second parameter.

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


More information about the wp-trac mailing list