[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
Sat Feb 18 09:58:51 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        |   Keywords:
--------------------------+-----------------------------
 component like activity/index.php groups/index.php and others had a line
 at top like this


 {{{
 <?php

 /**
  * Template Name: BuddyPress - Activity Directory
  *
  * @package BuddyPress
  * @subpackage Theme
  */

 ?>

 <?php get_header( 'buddypress' ); ?>
 }}}



 this cause header already sent output when i use bp_core_redirect or
 wp_redirect....simple solution would be removing the space like this


 {{{
 <?php
 /**
  * Template Name: BuddyPress - Activity Directory
  *
  * @package BuddyPress
  * @subpackage Theme
  */
 ?>
 <?php get_header( 'buddypress' ); ?>
 }}}

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


More information about the buddypress-trac mailing list