[wp-trac] [WordPress Trac] #21803: Add filter to make extending searching easier
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 5 17:01:57 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 scribu):
This line is incorrect though:
{{{
$search_fields = array( $wpdb->posts.post_title, $wpdb->posts.post_content
);
}}}
It should be:
{{{
$search_fields = array( "$wpdb->posts.post_title",
"$wpdb->posts.post_content" );
}}}
Also, I'm wondering if it should be a bit more highlevel, i.e. without the
`$wpdb->posts` prefixing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21803#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list