WordPress.org

Make WordPress Core

Ticket #21613: 21613.diff

File 21613.diff, 441 bytes (added by vhauri, 3 years ago)

patch changes when esc_textarea is called on the content (i.e. when $richedit is true rather than false)

  • wp-includes/formatting.php

     
    12671267 */ 
    12681268function format_to_edit( $content, $richedit = false ) { 
    12691269        $content = apply_filters( 'format_to_edit', $content ); 
    1270         if ( ! $richedit ) 
     1270        if ( $richedit ) 
    12711271                $content = esc_textarea( $content ); 
    12721272        return $content; 
    12731273}