[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 26 23:13:28 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):
[attachment:21309.2.diff]:
* call sanitize_post_field() in `__get()`
* always cast to WP_Post in WP_Query and get_pages()
* make WP_Post final and add @property list
* introduce WP_Post::get_instance() and make constructor private
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list