[wp-trac] [WordPress Trac] #56952: cache_users() not defined when calling get_user without field parameter or using all_with_meta or all

WordPress Trac noreply at wordpress.org
Wed Nov 2 16:09:40 UTC 2022


#56952: cache_users() not defined when calling get_user without field parameter or
using all_with_meta or all
--------------------------+------------------------------
 Reporter:  carazo        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  6.1
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by oakesjosh):

 I am also experiencing `cache_users` not being defined when calling
 `get_user` on 6.1.

 Under some conditions, my plugin calls `get_users` when initialized on the
 front end. In this context the plugin has loaded, but pluggable.php has
 not yet. Calling it without manually including `wp-includes/pluggable.php`
 results in a fatal error.

 I believe the issue is with the context of the call and not the content

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56952#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list