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

buddypress-trac noreply at wordpress.org
Thu Apr 25 17:41:23 UTC 2013


#4957: bp_setup_current_user and _doing_it_wrong
--------------------------+-----------------------------
 Reporter:  netweblogic   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 considering that functions like this are available at plugins_loaded,
 should _doing_it_wrong really be called in this sort of situation?

 {{{
 add_action( 'plugins_loaded', 'am_i_really_wrong');
 function am_i_really_wrong(){
   if( current_user_can('list_users') ){
     //did it wrong?
   }
 }
 }}}

 The warning is triggered when in WP_DEBUG mode.

 I may be missing something here... but until now this has never caused a
 problem.

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


More information about the buddypress-trac mailing list