Make WordPress Core

#56988 closed defect (bug) (duplicate)

Fatal error when `get_users()` is called before `plugins_loaded`

Reported by: desrosj's profile desrosj 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() before plugins_loaded ran.

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)

#1 @obenland
18 months ago

  • Milestone 6.1.1 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Apologies, I cross-linked to #55594 from #56952 but that didn't seem to actually cross-post to the ticket.

Note: See TracTickets for help on using tickets.