[wp-trac] [WordPress Trac] #18934: Multisite issue cleaning up empty capabilities

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 21 20:05:00 UTC 2011


#18934: Multisite issue cleaning up empty capabilities
--------------------------+--------------------
 Reporter:  jammitch      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Multisite     |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by wpmuguru):

 There were versions of MU which updated the user capability to an empty
 array instead of removing the capability. When a user signed up as a user,
 they were automatically added to the main site/blog.

 I think in the above versions the user was added with no role but the
 security required that they have a capability role so they could access
 the dashboard to change their password, etc.

 Those empty array rows could safely be removed from a core code
 perspective because the capability row is no longer required. The main
 concern would be to ensure the update function is still successful in
 larger installs.

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


More information about the wp-trac mailing list