[wp-trac] [WordPress Trac] #20152: Multisite simplify option name to user_roles

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 08:00:33 UTC 2012


#20152: Multisite simplify option name to user_roles
--------------------------+------------------------------
 Reporter:  colind        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by wonderboymusic):

 I added a patch to change the option name - but there are some serious
 deal breakers with doing so.

 Namely: go to your database and delete wp_2_user_roles or wp_user_roles.
 You're totally screwed. Those roles are saved during the upgrade routine
 in schema.php and create circular references til fatal error for WP_Roles
 if you try to do it in the class or in a function at runtime. Here is how
 the one option is generated:

 {{{
 function populate_roles() {
         populate_roles_160();
         populate_roles_210();
         populate_roles_230();
         populate_roles_250();
         populate_roles_260();
         populate_roles_270();
         populate_roles_280();
         populate_roles_300();
 }
 }}}

 So yeah.... There's that. The newly-named option CAN'T be created without
 an upgrade.

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


More information about the wp-trac mailing list