[buddypress-trac] [BuddyPress Trac] #6178: "Create new site" link in WPMU redirecting to homepage

buddypress-trac noreply at wordpress.org
Sat Jan 31 23:34:26 UTC 2015


#6178: "Create new site" link in WPMU redirecting to homepage
-----------------------------------+-----------------------------
 Reporter:  yosmc                  |      Owner:
     Type:  defect (bug)           |     Status:  new
 Priority:  normal                 |  Milestone:  Awaiting Review
Component:  Sign ups & Activation  |    Version:  2.0.3
 Severity:  normal                 |   Keywords:
-----------------------------------+-----------------------------
 Seems like this bug has been around for years: In a multisite environment,
 when users are allowed to create additional subsites, activating
 Buddypress breaks this function. In the dashboard, when you click on "my
 sites" -> "create new sites" the logged-in user never arrives at the form
 to actually create a new site, but is redirected to the homepage instead.

 PROPOSED FIX - in bp-members-function.php find this (line 2069):

 {{{
 if ( ! empty( $_SERVER['SCRIPT_NAME'] ) && false === strpos(
 $_SERVER['SCRIPT_NAME'], 'wp-signup.php' ) && ( 'register' != $action ) )
 {
 }}}


 REPLACE WITH:

 {{{
 if ( ! empty( $_SERVER['SCRIPT_NAME'] ) && ( 'register' != $action ) ) {
 }}}



 That way, new registrations are forwarded to the Buddypress form, while
 "create new site" is handled by WP Core.

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


More information about the buddypress-trac mailing list