List tables: escape user e-mails
Merges [34133] for 3.9 branch Built from https://develop.svn.wordpress.org/branches/3.9@34141 git-svn-id: http://core.svn.wordpress.org/branches/3.9@34109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b7606aaa3c
commit
0c61562bf5
|
@ -219,7 +219,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'email':
|
case 'email':
|
||||||
echo "<td $attributes><a href='mailto:$user->user_email'>$user->user_email</a></td>";
|
echo "<td $attributes><a href='" . esc_url( "mailto:$user->user_email" ) . "'>$user->user_email</a></td>";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'registered':
|
case 'registered':
|
||||||
|
|
|
@ -417,7 +417,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
$r .= "<td $attributes>$user_object->first_name $user_object->last_name</td>";
|
$r .= "<td $attributes>$user_object->first_name $user_object->last_name</td>";
|
||||||
break;
|
break;
|
||||||
case 'email':
|
case 'email':
|
||||||
$r .= "<td $attributes><a href='mailto:$email' title='" . esc_attr( sprintf( __( 'E-mail: %s' ), $email ) ) . "'>$email</a></td>";
|
$r .= "<td $attributes><a href='" . esc_url( "mailto:$email" ) . "' title='" . esc_attr( sprintf( __( 'E-mail: %s' ), $email ) ) . "'>$email</a></td>";
|
||||||
break;
|
break;
|
||||||
case 'role':
|
case 'role':
|
||||||
$r .= "<td $attributes>$role_name</td>";
|
$r .= "<td $attributes>$role_name</td>";
|
||||||
|
|
Loading…
Reference in New Issue