WordPress.org

Make WordPress Core

Ticket #28259: 28259.diff

File 28259.diff, 695 bytes (added by Kau-Boy, 4 years ago)
  • wp-includes/class-wp-editor.php

     
    130130         */ 
    131131        public static function editor( $content, $editor_id, $settings = array() ) { 
    132132 
    133                 $set = self::parse_settings( $editor_id, $settings ); 
     133                $set = self::parse_settings( $editor_id, apply_filters( 'wp_editor_settings', $settings, $editor_id ) ); 
    134134                $editor_class = ' class="' . trim( $set['editor_class'] . ' wp-editor-area' ) . '"'; 
    135135                $tabindex = $set['tabindex'] ? ' tabindex="' . (int) $set['tabindex'] . '"' : ''; 
    136136                $switch_class = 'html-active';