Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/20/2016 11:49:17 AM (10 years ago)
Author:
imath
Message:

Multisite: make sure regular users can create new sites when the blogs component is not active.

strpos() function was used the wrong way around, as a result clicking on the "Add new" button at the top of the "My Sites" dashboard page was redirecting the user to root blog home. Using the strpos() function the right way is making sure the user can access to the WordPress signup page and create a new site.

Fixes #6178

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r10601 r10665  
    23332333
    23342334    // Not at the WP core signup page and action is not register.
    2335     if ( ! empty( $_SERVER['SCRIPT_NAME'] ) && false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php' ) && ( 'register' != $action ) ) {
     2335    if ( ! empty( $_SERVER['SCRIPT_NAME'] ) && false === strpos( 'wp-signup.php', $_SERVER['SCRIPT_NAME'] ) && ( 'register' != $action ) ) {
    23362336        return;
    23372337    }
Note: See TracChangeset for help on using the changeset viewer.