[wp-trac] [WordPress Trac] #12267: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 13 17:34:11 UTC 2012
#12267: Introduce WP_Post class
-------------------------+-----------------------------
Reporter: andy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------------
Comment (by toppa):
Got it - let me know if the patch I just added looks like the right
approach.
Then the question is - how far to go? We could potentially fold in a lot
of what's in post.php and post-template.php. Focus on the display-oriented
functions, since that's where most of the interest seems to be, or go for
all the post-related functionality?
In regard to the magic set, I think you misunderstood my point. It does
disallow adding arbitrary properties (e.g. it won't let you do $post->foo
= 'bar'). It doesn't stop you directly changing values to the listed
properties. If we do need to allow adding arbitrary properties, then I'll
just remove the magic set (and in that case it may not even be worth
listing the properties).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12267#comment:60>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list