Changeset 17142 for trunk/wp-includes/formatting.php
- Timestamp:
- 12/25/2010 06:10:59 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (2 diffs)
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)