[buddypress-trac] [BuddyPress Trac] #6589: bp_setup_current_user() over zealous checking for did_action( "after_setup_theme" )

buddypress-trac noreply at wordpress.org
Tue Aug 18 10:46:26 UTC 2015


#6589: bp_setup_current_user() over zealous checking for did_action(
"after_setup_theme" )
------------------------------+----------------------------------
 Reporter:  bobbingwide       |       Owner:  johnjamesjacoby
     Type:  defect (bug)      |      Status:  assigned
 Priority:  high              |   Milestone:  Under Consideration
Component:  Component - Core  |     Version:  2.3.2
 Severity:  minor             |  Resolution:
 Keywords:  close             |
------------------------------+----------------------------------

Comment (by bobbingwide):

 Hi @netweb, even though Rarst has addressed this issue for WordPress SEO
 the problem still exists with other plugins that use current_user_can()
 before "after_setup_theme".
 In my limited experience both BuddyPress and bbPress are working fine.

 Another alternative would be not to invoke the 'bp_setup_current_user'
 action either by testing did_action( 'after_setup_theme') or not calling
 add_action( 'bp_setup_current_user') until 'after_setup_theme' has been
 invoked.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6589#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list