[wp-trac] [WordPress Trac] #44894: Add support for an optional `$roles` parameter to `populate_roles()`
WordPress Trac
noreply at wordpress.org
Wed Jan 23 22:44:03 UTC 2019
#44894: Add support for an optional `$roles` parameter to `populate_roles()`
------------------------------------------+-----------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: multisite
------------------------------------------+-----------------------------
Comment (by boonebgorges):
Not sure if this counts as part of the proposed changes, but I noticed
recently that `populate_roles()` can generate many dozens of consecutive
database writes, which can wreak havoc in certain environments. I wonder
if we might consider setting `use_db = false` at the beginning of the
`populate` process, and then doing a single save at the end.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44894#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list