[wp-trac] Re: [WordPress Trac] #6772: get_posts Should Use WP_Query
WordPress Trac
wp-trac at lists.automattic.com
Mon May 5 07:28:03 GMT 2008
#6772: get_posts Should Use WP_Query
-----------------------------------------------+----------------------------
Reporter: filosofo | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.6
Component: General | Version: 2.6
Severity: blocker | Resolution:
Keywords: wp_query get_posts wpdb has-patch |
-----------------------------------------------+----------------------------
Comment (by filosofo):
Talking with DD32 and photomatt in IRC, I've attached the
fix_get_children_get_posts.diff patch, which combines DD32's 6772.diff
patch with a couple of other changes:
* The patch specifies "inherit" as the post_status for the media
get_children requests
* The patch also specifies "order" to make sure that it's preserved
* but for backwards-compat with old queries, if the post_type is
"attachment" and post_status is not defined, get_posts (the function) sets
post_status to "inherit"
--
Ticket URL: <http://trac.wordpress.org/ticket/6772#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list