Opened 3 years ago
Closed 3 years ago
#56988 closed defect (bug) (duplicate)
Fatal error when `get_users()` is called before `plugins_loaded`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.1 |
Component: | Users | Keywords: | |
Focuses: | Cc: |
Description
From ticket:55594#comment:14:
Just a heads up that this change (specifically this one) breaks plugins that called
get_users()
beforeplugins_loaded
ran.
- https://stackoverflow.com/questions/74289047/wordpress-function-cache-users-not-found-after-update-to-6-1
- https://stackoverflow.com/questions/74290907/uncaught-error-call-to-undefined-function-cache-users
This query also surfaces broken sites in the wild: https://www.google.com/search?q=Call+to+undefined+function+cache_users()
The changeset in question: [53655].
Thanks @obenland for the report.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Apologies, I cross-linked to #55594 from #56952 but that didn't seem to actually cross-post to the ticket.