[wp-trac] [WordPress Trac] #10605: WordPress Shouldn't Mess with post_type
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 15 02:43:53 UTC 2009
#10605: WordPress Shouldn't Mess with post_type
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Query | Version:
Severity: normal | Keywords: post_type, wp_query has-patch
--------------------------+-------------------------------------------------
Comment(by dd32):
that code again..
{{{
if ( 'any' == $post_type ) {
...
} elseif ( ! empty($post_type) ) {
$where .= " AND $wpdb->posts.post_type = '$post_type'";
} elseif ( is_page....
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10605#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list