[wp-trac] [WordPress Trac] #20297: WP_Query implements IteratorAggregate
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 25 23:46:31 UTC 2012
#20297: WP_Query implements IteratorAggregate
-----------------------------+------------------------------
Reporter: hakre | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch close |
-----------------------------+------------------------------
Comment (by scribu):
If we were to implement IteratorAggregate and ArrayAccess, we could make
get_posts() just return the WP_Query instance, but that won't be much help
if we still have to deal with setup_postdata().
So, yeah, WP_Post first.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20297#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list