[wp-trac] [WordPress Trac] #20487: Comment search isn't customizable
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 19 22:21:46 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):
The gain is not having to pass the whitelist each time you call
get_search_sql().
If you don't want to hardcode the whitelist into `get_search_sql()`, you
might as well do:
{{{
get_search_sql( array_intersect( $whitelist,
$this->query_vars['search_columns'] ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20487#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list