[wp-trac] [WordPress Trac] #12267: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 13 15:33:28 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):
The patch I just added is a prototype, and is essentially a simpler
version of previous proposed patches. I made the properties public since
there is already existing code that directly manipulates their values (but
__set at least checks that arbitrary properties aren't being added).
The main interest in this discussion so far is to focus on methods related
to display, so I have get_the_title() as an example. My thought is that,
in the long run, WP_Post would become the home for this functionality (not
just a wrapper for existing functions), but I want to see what people
think of what I have as a starting point.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12267#comment:58>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list