Opened 4 years ago
Closed 4 years ago
#56988 closed defect (bug) (duplicate)
Fatal error when `get_users()` is called before `plugins_loaded`
| Reported by: | desrosj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Users | Version: | 6.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
From ticket:55594#comment:14:
Just a heads up that this change (specifically this one) breaks plugins that called
get_users()beforeplugins_loadedran.
- 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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Apologies, I cross-linked to #55594 from #56952 but that didn't seem to actually cross-post to the ticket.