[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 26 18:40:08 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 nacin):
Replying to [comment:13 scribu]:
> You can have another decorator class instead, i.e. have a My_WP_Post
class that contains a WP_Post instance, just like WP_Post contains an
instance of a stdClass.
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?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list