mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Privacy: fix inconsistencies in new strings.
Props audrasjb. Fixes #43925. git-svn-id: https://develop.svn.wordpress.org/trunk@43118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2987,11 +2987,11 @@ function wp_create_user_request( $email_address = '', $action_name = '', $reques
|
||||
$action_name = sanitize_key( $action_name );
|
||||
|
||||
if ( ! is_email( $email_address ) ) {
|
||||
return new WP_Error( 'invalid_email', __( 'Invalid email address' ) );
|
||||
return new WP_Error( 'invalid_email', __( 'Invalid email address.' ) );
|
||||
}
|
||||
|
||||
if ( ! $action_name ) {
|
||||
return new WP_Error( 'invalid_action', __( 'Invalid action name' ) );
|
||||
return new WP_Error( 'invalid_action', __( 'Invalid action name.' ) );
|
||||
}
|
||||
|
||||
$user = get_user_by( 'email', $email_address );
|
||||
|
||||
Reference in New Issue
Block a user