[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 25 19:09:17 UTC 2012


#21309: Introduce WP_Post class
----------------------------+------------------
 Reporter:  scribu          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by scribu):

 > Update query.php to cast the stdClass posts in the ::posts list to
 WP_Post?

 This is already handled if $split_query is true:

 {{{
 $this->posts = array_map( 'get_post', $ids );
 }}}

 but not for the other case. Will fix.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list