[buddypress-trac] [BuddyPress] #5199: Setting register page as static front page results in duplicate content

buddypress-trac noreply at wordpress.org
Tue Oct 15 09:27:15 UTC 2013


#5199: Setting register page as static front page results in duplicate content
-------------------------------------+------------------------------
 Reporter:  henrywright              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Core                     |     Version:  1.8.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by henrywright):

 Hi Boone

 I've tested this on a fresh install, 2013 theme and it works well. I did
 have an issue when I tested on a site with a customised theme and custom
 functions.php. I was getting a redirect loop on every login attempt.
 Adding the following hook solved that problem - just thought that was
 worth mentioning.

 {{{
 function bp_redirect_to_profile() {
         global $bp;

         if ( is_user_logged_in() && ( is_front_page() ) ) {
                 wp_redirect( $bp->loggedin_user->domain );
                 exit();
         }
 }
 add_action('wp','bp_redirect_to_profile');
 }}}

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


More information about the buddypress-trac mailing list