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
|
||||
*
|
||||
|
@ -1123,10 +1123,10 @@ function force_balance_tags( $text ) {
|
|||
* @param bool $richedit Whether the $content should pass through htmlspecialchars(). Default false.
|
||||
* @return string The text after the filter (and possibly htmlspecialchars()) has been run.
|
||||
*/
|
||||
function format_to_edit($content, $richedit = false) {
|
||||
$content = apply_filters('format_to_edit', $content);
|
||||
if (! $richedit )
|
||||
$content = esc_textarea($content);
|
||||
function format_to_edit( $content, $richedit = false ) {
|
||||
$content = apply_filters( 'format_to_edit', $content );
|
||||
if ( ! $richedit )
|
||||
$content = esc_textarea( $content );
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
|
|
@ -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