[wp-trac] [WordPress Trac] #20152: Multisite simplify option name to user_roles
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 18:52: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: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by nacin):
What about:
* An upgrade routine (e.g. upgrade_350, 360, etc) renames $wpdb->prefix .
'user_roles' to 'user_roles'
* We change any reference(s) in core to 'user_roles', which is mostly
just the change in WP_Roles
* In WP_Roles, if 'user_roles' doesn't exist, it falls back to
$wpdb->prefix . 'user_roles'. If it does this in the admin, it renames the
option
* We use the option_{$wpdb->prefix}_user_roles filter (maybe
default_option_*) to fall back to 'user_roles' in case anyone is
referencing it directly
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20152#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list