[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 27 15:24:49 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.3.diff]:
* make `WP_Post::get_instance()` only accept a post id and keep the
complicated logic in get_post()
* make `WP_Post::__construct()` public, out of necessity, but also since
you can change any field anyway
* clean up get_post_field()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list