mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
The user description field should be esc_textarea when context is edit. see #15454.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb574d4e5f
commit
67dca406aa
@ -1211,7 +1211,7 @@ function sanitize_user_field($field, $value, $user_id, $context) {
|
||||
}
|
||||
|
||||
if ( 'description' == $field )
|
||||
$value = esc_html($value);
|
||||
$value = esc_textarea( $value );
|
||||
else
|
||||
$value = esc_attr($value);
|
||||
} else if ( 'db' == $context ) {
|
||||
|
Loading…
Reference in New Issue
Block a user