Revert [16995] due to the way the data enters the db. props garyc40, see #15454.

git-svn-id: https://develop.svn.wordpress.org/trunk@17142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-25 18:10:59 +00:00
parent ae22a6d462
commit f3419ea181
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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 ) {