[wp-trac] [WordPress Trac] #16617: New WP_Roles

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 5 16:29:01 UTC 2011


#16617: New WP_Roles
-----------------------------+----------------------
 Reporter:  jrfoell          |       Owner:
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Role/Capability  |     Version:  3.0.5
 Severity:  normal           |  Resolution:  invalid
 Keywords:  has-patch close  |
-----------------------------+----------------------

Comment (by jrfoell):

 scribu, I did read the comments, and edited my original response to
 reflect that.

 While allowing the instantiation of a new WP_Roles is probably not needed,
 my complaint remains.  The usage of objects (or restriction of) in
 WordPress is unclear.  On one hand it seems like the code base is trying
 to modernize by providing these objects, but on the other hand you're
 telling me not to use them.  Since WP is still supporting PHP4, the
 documentation should ''at least'' reflect the intended visibility of the
 class.

 Would you accept a patch if it were merely to state that WP_Role's
 constructor is intended to be (mostly) private, called once as a
 singleton?

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


More information about the wp-trac mailing list