Changeset 17142
- Timestamp:
- 12/25/2010 06:10:59 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
formatting.php (modified) (2 diffs)
-
user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r17001 r17142 1115 1115 * 1116 1116 * 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 the1118 * content, converting special characters to HTMlentities.1117 * filter. If $richedit is set true htmlspecialchars(), through esc_textarea(), 1118 * will be run on the content, converting special characters to HTML entities. 1119 1119 * 1120 1120 * @since 0.71 … … 1124 1124 * @return string The text after the filter (and possibly htmlspecialchars()) has been run. 1125 1125 */ 1126 function format_to_edit( $content, $richedit = false) {1127 $content = apply_filters( 'format_to_edit', $content);1128 if ( ! $richedit )1129 $content = esc_textarea( $content);1126 function format_to_edit( $content, $richedit = false ) { 1127 $content = apply_filters( 'format_to_edit', $content ); 1128 if ( ! $richedit ) 1129 $content = esc_textarea( $content ); 1130 1130 return $content; 1131 1131 } -
trunk/wp-includes/user.php
r17091 r17142 1203 1203 1204 1204 if ( 'description' == $field ) 1205 $value = esc_ textarea( $value );1205 $value = esc_html( $value ); // textarea_escaped? 1206 1206 else 1207 1207 $value = esc_attr($value);
Note: See TracChangeset
for help on using the changeset viewer.