Make WordPress Core

Ticket #54326: 54326.diff

File 54326.diff, 629 bytes (added by henry.wright, 4 years ago)
  • src/wp-includes/ms-functions.php

    diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
    index 09b48be..f60cd95 100644
    function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) { 
    715715                $errors->add( 'blogname', __( 'Sorry, that site already exists!' ) );
    716716        }
    717717
     718        // Check if the blogname matches an existing user's login name.
    718719        if ( username_exists( $blogname ) ) {
    719720                if ( ! is_object( $user ) || ( is_object( $user ) && ( $user->user_login != $blogname ) ) ) {
    720721                        $errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) );