mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Remove title attributes in wp_authenticate_username_password()
.
Props joedolson. Fixes #26547. Built from https://develop.svn.wordpress.org/trunk@28870 git-svn-id: http://core.svn.wordpress.org/trunk@28670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
831e5aa049
commit
71090a7f12
@ -134,7 +134,7 @@ function wp_authenticate_username_password($user, $username, $password) {
|
|||||||
$user = get_user_by('login', $username);
|
$user = get_user_by('login', $username);
|
||||||
|
|
||||||
if ( !$user )
|
if ( !$user )
|
||||||
return new WP_Error( 'invalid_username', sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?' ), wp_lostpassword_url() ) );
|
return new WP_Error( 'invalid_username', sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s">Lost your password</a>?' ), wp_lostpassword_url() ) );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter whether the given user can be authenticated with the provided $password.
|
* Filter whether the given user can be authenticated with the provided $password.
|
||||||
@ -150,7 +150,7 @@ function wp_authenticate_username_password($user, $username, $password) {
|
|||||||
return $user;
|
return $user;
|
||||||
|
|
||||||
if ( !wp_check_password($password, $user->user_pass, $user->ID) )
|
if ( !wp_check_password($password, $user->user_pass, $user->ID) )
|
||||||
return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),
|
return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s">Lost your password</a>?' ),
|
||||||
$username, wp_lostpassword_url() ) );
|
$username, wp_lostpassword_url() ) );
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
|
Loading…
Reference in New Issue
Block a user