[wp-trac] [WordPress Trac] #22162: WP_Query must convert posts to WP_Post objects after filters are run

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 12 13:37:41 UTC 2012


#22162: WP_Query must convert posts to WP_Post objects after filters are run
--------------------------+--------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Query         |     Version:  trunk
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by ryan):

 It's probably good enough.

 Alternatively, since we already do a foreach sanitize_post() loop, do an
 is_a check and upgrade stdClass objects.

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


More information about the wp-trac mailing list