mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-26 10:11:29 +01:00
s/site/user/ if signup doesn't have a domain attached. props wpmuguru, fixes #15780.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
899f0e115d
commit
1b18b8e5f0
@ -773,8 +773,12 @@ function wpmu_activate_signup($key) {
|
|||||||
if ( empty( $signup ) )
|
if ( empty( $signup ) )
|
||||||
return new WP_Error( 'invalid_key', __( 'Invalid activation key.' ) );
|
return new WP_Error( 'invalid_key', __( 'Invalid activation key.' ) );
|
||||||
|
|
||||||
if ( $signup->active )
|
if ( $signup->active ) {
|
||||||
|
if ( empty( $signup->domain ) )
|
||||||
|
return new WP_Error( 'already_active', __( 'The user is already active.' ), $signup );
|
||||||
|
else
|
||||||
return new WP_Error( 'already_active', __( 'The site is already active.' ), $signup );
|
return new WP_Error( 'already_active', __( 'The site is already active.' ), $signup );
|
||||||
|
}
|
||||||
|
|
||||||
$meta = unserialize($signup->meta);
|
$meta = unserialize($signup->meta);
|
||||||
$user_login = $wpdb->escape($signup->user_login);
|
$user_login = $wpdb->escape($signup->user_login);
|
||||||
|
Loading…
Reference in New Issue
Block a user