mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 02:41:27 +01:00
List tables: escape user e-mails
Merges [34133] for 4.3 branch Built from https://develop.svn.wordpress.org/branches/4.3@34137 git-svn-id: http://core.svn.wordpress.org/branches/4.3@34105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fe5a0eb07
commit
f91a5fd10e
@ -233,7 +233,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
* @param WP_User $user The current WP_User object.
|
||||
*/
|
||||
public function column_email( $user ) {
|
||||
echo "<a href='mailto:$user->user_email'>$user->user_email</a>";
|
||||
echo "<a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -435,7 +435,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
$r .= "$user_object->first_name $user_object->last_name";
|
||||
break;
|
||||
case 'email':
|
||||
$r .= "<a href='mailto:$email'>$email</a>";
|
||||
$r .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";
|
||||
break;
|
||||
case 'role':
|
||||
$r .= $role_name;
|
||||
|
Loading…
Reference in New Issue
Block a user