[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 25 19:39:22 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):
> Providing these things via {{{__get()}}} is so cheap it is practically
free.
Even when people start to use {{{$post->some_custom_field}}} everywhere?
The additional checks would have to be done before calling
get_post_meta().
The idea of WP_Post_To_Edit is that it's something you pass to
wp_insert_post(), which could contain some additional logic in the future.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list