[wp-trac] [WordPress Trac] #12267: Upgrade loop objects to provide identical presentational interfaces.

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 23 01:57:04 UTC 2010


#12267: Upgrade loop objects to provide identical presentational interfaces.
-------------------------+--------------------------------------------------
 Reporter:  andy         |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.0
Component:  General      |     Version:     
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------

Comment(by andy):

 The part of the class name that follows the object type should not be
 capitalized. WP_Object_Post should be WP_Object_post because "post" is
 actually data. The simplicity of taking data from post_type or
 comment_type for the class name without transforming to leading caps
 trumps the style guide. IMHO, anyway.

 Also I think we might give wpdb::query() a new return type, WP_OBJECT,
 which would put all rows through the factory.

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


More information about the wp-trac mailing list