[wp-trac] [WordPress Trac] #12704: Multiple post_types can no longer be specified in query
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 8 21:29:21 UTC 2010
#12704: Multiple post_types can no longer be specified in query
-----------------------------+----------------------------------------------
Reporter: mitchoyoshitaka | Owner: dd32
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.0
Component: Query | Version: 3.0
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Comment(by dd32):
> attachment 12704.diff added
Largely untested, but passes every situation i threw at it late last
night. I probably missed one however.
I noticed a weird query:
{{{
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type =
'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.ID ASC
LIMIT 0, 1
}}}
coming from
{{{
require, require_once, include, get_header, locate_template,
load_template, require_once, wp_head, do_action, call_user_func_array,
start_post_rel_link, get_boundary_post_rel_link, get_boundary_post,
get_posts, WP_Query->query, WP_Query->get_posts
}}}
after this patch, i'm not sure if it was there before or not.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12704#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list