[buddypress-trac] [BuddyPress] #4957: bp_setup_current_user and _doing_it_wrong

buddypress-trac noreply at wordpress.org
Thu Apr 25 18:36:01 UTC 2013


#4957: bp_setup_current_user and _doing_it_wrong
--------------------------+------------------------------
 Reporter:  netweblogic   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  minor         |  Resolution:  wontfix
 Keywords:                |
--------------------------+------------------------------
Changes (by johnjamesjacoby):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Most of WordPress is available by the time the 'muplugins_loaded' action
 fires, but many API's like Localization and Roles aren't ready to be
 loaded until later in the stack. The currently logged in user is no
 exception to this.

 It's a common mistake, and even WordPress core does it wrong in 1 place;
 see #WP24169.

 The debug notice is annoying, but invoking the current user that early in
 the stack is going to cause a myriad of other invisible issues with both
 BuddyPress and bbPress. Closing this as wontfix.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4957#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list