Changeset 34727
- Timestamp:
- 10/01/2015 02:00:42 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r34675 r34727 1844 1844 * 1845 1845 * @since 0.71 1846 * 1847 * @param string $content The text about to be edited. 1848 * @param bool $richedit Whether the $content should not pass through htmlspecialchars(). Default false (meaning it will be passed). 1846 * @since 4.4.0 The `$richedit` parameter was renamed to `$rich_text` for clarity. 1847 * 1848 * @param string $content The text about to be edited. 1849 * @param bool $rich_text Optional. Whether `$content` should be considered rich text, 1850 * in which case it would not be passed through esc_textarea(). 1851 * Default false. 1849 1852 * @return string The text after the filter (and possibly htmlspecialchars()) has been run. 1850 1853 */ 1851 function format_to_edit( $content, $rich edit = false ) {1854 function format_to_edit( $content, $rich_text = false ) { 1852 1855 /** 1853 1856 * Filter the text to be formatted for editing. … … 1858 1861 */ 1859 1862 $content = apply_filters( 'format_to_edit', $content ); 1860 if ( ! $rich edit )1863 if ( ! $rich_text ) 1861 1864 $content = esc_textarea( $content ); 1862 1865 return $content;
Note: See TracChangeset
for help on using the changeset viewer.