[wp-trac] [WordPress Trac] #12267: Introduce WP_Post class

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 13 17:59:31 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 scribu):

 What I'm saying is that `if ( property_exists('WP_Post', $name) )` will
 never be true, since WP_Post only has public properties and `__set()` is
 not called for public properties.

 As for `get_the_title()`, I think we can shorten it to
 `WP_Post->get_title()`. Let's stick to porting template tags for now.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12267#comment:61>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list