[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 26 20:06:56 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):
> If that's the design pattern we're going to suggest for now, should
WP_Post be made final to protect us in doing future changes?
Yes, if we're going to go with composition instead of inheritance, we
should use the final keyword. We can remove it later, if necessary.
> get_pages() also needs its results cast to WP_Post.
Also, it has a funky 'get_pages' cache, which will need some work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list