WordPress.org

Make WordPress Core

Ticket #35428: ms-functions.php.3.patch

File ms-functions.php.3.patch, 870 bytes (added by pbearne, 4 years ago)

removed extra whitespace changes and fix format

  • wp-includes/ms-functions.php

     
    969969
    970970        $user_id = username_exists($signup->user_login);
    971971
    972         if ( ! $user_id )
    973                 $user_id = wpmu_create_user($signup->user_login, $password, $signup->user_email);
    974         else
    975                 $user_already_exists = true;
     972        if ( ! $user_id ) {
     973                $user_id = wpmu_create_user( $signup->user_login, $password, $signup->user_email );
     974        } else {
     975                /**
     976                 * allow the suppression of errors if user already exists.
     977                 *
     978                 * @since 4.5
     979                 *
     980                 * @param WP_Error
     981                 */
     982                $user_already_exists = apply_filters( '_wpmu_activate_existing_error_', true, $signup );
     983        }
    976984
    977985        if ( ! $user_id )
    978986                return new WP_Error('create_user', __('Could not create user'), $signup);