[buddypress-trac] [BuddyPress] #4020: Empty space cause bp_core_redirect() return header error

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Feb 19 10:49:26 UTC 2012


#4020: Empty space cause bp_core_redirect() return header error
-------------------------------+------------------------------
 Reporter:  mkels              |       Owner:  mkels
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Theme              |     Version:  1.5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by mkels):

 hi djpaul..actually it wasnt a plugin..its a function i added to theme
 functions.php to redirect not logged in user like


 {{{
 function get_out_now() {
 if ( bp_is_profile_component() || bp_is_activity_component() ||
 bp_is_member() ) {
 if( !is_user_logged_in() ) {
 bp_core_redirect( $bp->root_domain . '/' . bp_get_root_slug( 'register' )
 );
 }
 }
 }
 add_filter('get_header', 'get_out_now');
 }}}

 using add_action('wp_head' or 'bp_head') also had the same result.

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


More information about the buddypress-trac mailing list