Make WordPress Core

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() 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
4 years ago

  • Milestone 6.1.1
  • Resolution → duplicate
  • Status new → 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.