WordPress.org

Make WordPress Core

Ticket #5796: 5796.diff

File 5796.diff, 685 bytes (added by DD32, 7 years ago)
  • wp-includes/general-template.php

     
    983983        </script> 
    984984        <?php endif; // 'html' != $wp_default_editor 
    985985 
     986        if( 'html' == $wp_default_editor ) 
     987                $content = htmlspecialchars($content); //Double-(re)encode it so that it isnt treated as HTML upon saving. 
     988 
    986989        $the_editor = apply_filters('the_editor', "<div id='editorcontainer'><textarea class='' $rows cols='40' name='$id' tabindex='2' id='$id'>%s</textarea></div>\n"); 
    987990        $the_editor_content = apply_filters('the_editor_content', $content); 
    988991