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

WordPress Trac noreply at wordpress.org
Mon Apr 11 12:41:50 UTC 2016


#20152: Multisite simplify option name to user_roles
---------------------------------------+-----------------------------
 Reporter:  colind                     |       Owner:
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:  Future Release
Component:  Role/Capability            |     Version:  3.3.1
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-refresh  |     Focuses:  multisite
---------------------------------------+-----------------------------

Comment (by knutsp):

 This convention (prefixing an option in a table that's already prefixed
 and thereby site specific) just creates extra work and possible confusion
 when moving sites.

 If two sites in some strange way are able to be sharing their options then
 they share `user roles`, too. If this is happening in som rare cases,
 using config contants for `site_url` and `home_url`, add a constant for
 `user_roles`  to override the option, like `WP_USER_ROLES` (simple array
 of strings).

 Please fix.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20152#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list