[wp-trac] [WordPress Trac] #65241: get_editable_roles() returns empty array in multisite
WordPress Trac
noreply at wordpress.org
Thu May 28 13:24:31 UTC 2026
#65241: get_editable_roles() returns empty array in multisite
--------------------------------------------------+---------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd-opinion | Focuses:
--------------------------------------------------+---------------------
Comment (by mindctrl):
> They both should never have been added to that option in the first place
That may be true, but that's how it is now, and has been for a long time.
The migration tool was responsible for updating the key, but it didn't.
What else did it do incorrectly? We don't know. That's one reason why I
think WP should not attempt to fix it internally.
It would hide broken migrations, and it might not even fix all the data
that was missed by the tool. It would also add code to the hot path and
penalize every correctly configured site just to accommodate tools that
don't migrate the data correctly. It seems like a very small edge case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65241#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list