Make WordPress Core

Ticket #27858: 27858-2.diff

File 27858-2.diff, 710 bytes (added by elliott-stocks, 10 years ago)
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index b74e762..deec569 100644
    final class _WP_Editors { 
    646646                                'body_class' => $body_class
    647647                        );
    648648
     649                        if( current_user_can( 'unfiltered_html' ) ) {
     650                                $mceInit['extended_valid_elements'] = 'img[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|contextmenu|draggable|dropzone|hidden|spellcheck|translate|src|alt=|usemap|ismap|width|height|name|longdesc|align|border|hspace|vspace|crossorigin|onmouseover|onmouseout]';
     651                        }
     652
    649653                        if ( $first_run )
    650654                                $mceInit = array_merge( self::$first_init, $mceInit );
    651655