WordPress.org

Make WordPress Core

Changeset 17142


Ignore:
Timestamp:
12/25/2010 06:10:59 PM (10 years ago)
Author:
nacin
Message:

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r17001 r17142  
    11151115 *
    11161116 * Unless $richedit is set, it is simply a holder for the 'format_to_edit'
    1117  * filter. If $richedit is set true htmlspecialchars() will be run on the
    1118  * content, converting special characters to HTMl entities.
     1117 * filter. If $richedit is set true htmlspecialchars(), through esc_textarea(),
     1118 * will be run on the content, converting special characters to HTML entities.
    11191119 *
    11201120 * @since 0.71
     
    11241124 * @return string The text after the filter (and possibly htmlspecialchars()) has been run.
    11251125 */
    1126 function format_to_edit($content, $richedit = false) {
    1127     $content = apply_filters('format_to_edit', $content);
    1128     if (! $richedit )
    1129         $content = esc_textarea($content);
     1126function format_to_edit( $content, $richedit = false ) {
     1127    $content = apply_filters( 'format_to_edit', $content );
     1128    if ( ! $richedit )
     1129        $content = esc_textarea( $content );
    11301130    return $content;
    11311131}
  • trunk/wp-includes/user.php

    r17091 r17142  
    12031203
    12041204        if ( 'description' == $field )
    1205             $value = esc_textarea( $value );
     1205            $value = esc_html( $value ); // textarea_escaped?
    12061206        else
    12071207            $value = esc_attr($value);
Note: See TracChangeset for help on using the changeset viewer.