[wp-trac] [WordPress Trac] #44857: get_object_subtype uses get_user_by before it's defined

WordPress Trac noreply at wordpress.org
Tue Apr 2 19:11:23 UTC 2019


#44857: get_object_subtype uses get_user_by before it's defined
-------------------------------+------------------------------
 Reporter:  infostreams        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Users              |     Version:  4.9.8
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  dev-feedback => reporter-feedback


Comment:

 Hi @infostreams, welcome to WordPress Trac! Thanks for the report. Sorry
 it took a while for someone to get back to you.

 Could you provide an example code to reproduce the issue? It sounds like
 it's caused by a plugin running some initialization code too early.
 Generally it's not recommended for plugins to run any code until the
 appropriate action fires, e.g. `plugins_loaded` or `init`.

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


More information about the wp-trac mailing list