[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 22 18:08:57 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):
> Might break some situations where someone is using stick_post() on a
non-post.
Example?
> That first query is faster, and could be replaced with
_prime_post_caches(), though the order-by date is tempting.
Not really. If you look at the code that the patch removes, you'd still
have to:
1) check the post type
2) check the post status
3) order by date
In other words, exactly what the new query does.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list