[wp-trac] [WordPress Trac] #20152: Multisite simplify option name to user_roles
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 13 19:05:36 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):
Replying to [comment:12 wonderboymusic]:
> Also, currently the generation of the roles calls update_option on every
add_role and add_cap invocation, rather than once per role or (like
_WP_User_Roles::init) once only for all default roles.
I've noticed — and this is painful when adding a new blog in multisite. It
would be nice if we made this less painful, though I doubt a whole new
class is necessary. Similar to what we did for wp_get_db_schema(). In fact
the whole thing could probably sit in populate_roles() and replace all of
the child functions there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20152#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list