Revert [16995] due to the way the data enters the db. props garyc40, see #15454.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9009245db5
commit
95726df854
|
@ -1114,8 +1114,8 @@ function force_balance_tags( $text ) {
|
|||
* Acts on text which is about to be edited.
|
||||
*
|
||||
* Unless $richedit is set, it is simply a holder for the 'format_to_edit'
|
||||
* filter. If $richedit is set true htmlspecialchars() will be run on the
|
||||
* content, converting special characters to HTMl entities.
|
||||
* filter. If $richedit is set true htmlspecialchars(), through esc_textarea(),
|
||||
* will be run on the content, converting special characters to HTML entities.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
|
@ -1202,7 +1202,7 @@ function sanitize_user_field($field, $value, $user_id, $context) {
|
|||
}
|
||||
|
||||
if ( 'description' == $field )
|
||||
$value = esc_textarea( $value );
|
||||
$value = esc_html( $value ); // textarea_escaped?
|
||||
else
|
||||
$value = esc_attr($value);
|
||||
} else if ( 'db' == $context ) {
|
||||
|
|
Loading…
Reference in New Issue