Make WordPress Core

Ticket #20030: 20030.diff

File 20030.diff, 1.6 KB (added by duck_, 13 years ago)
  • wp-includes/class-wp-editor.php

     
    167167                                $no_captions = (bool) apply_filters( 'disable_captions', '' );
    168168                                $plugins = array( 'inlinepopups', 'spellchecker', 'tabfocus', 'paste', 'media', 'fullscreen', 'wordpress', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' );
    169169                                $first_run = true;
     170                                $ext_plugins = '';
    170171
    171172                                if ( $set['teeny'] ) {
    172173                                        self::$plugins = $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'fullscreen', 'wordpress', 'wplink', 'wpdialogs'), $editor_id );
    173                                         $ext_plugins = '';
    174174                                } else {
    175175                                        /*
    176176                                        The following filter takes an associative array of external plugins for TinyMCE in the form 'plugin_name' => 'url'.
     
    181181                                        */
    182182                                        $mce_external_plugins = apply_filters('mce_external_plugins', array());
    183183
    184                                         $ext_plugins = '';
    185184                                        if ( ! empty($mce_external_plugins) ) {
    186185
    187186                                                /*
     
    247246
    248247                                                        $ext_plugins .= 'tinyMCEPreInit.load_ext("' . $plugurl . '", "' . $mce_locale . '");' . "\n";
    249248                                                        $ext_plugins .= 'tinymce.PluginManager.load("' . $name . '", "' . $url . '");' . "\n";
    250 
    251                                                         self::$ext_plugins .= $ext_plugins;
    252249                                                }
    253250                                        }
    254251
     
    259256                                        $plugins[] = 'wpfullscreen';
    260257
    261258                                self::$plugins = $plugins;
     259                                self::$ext_plugins = $ext_plugins;
    262260
    263261                                /*
    264262                                translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first