Ticket #20030: 20030.diff
File 20030.diff, 1.6 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp-editor.php
167 167 $no_captions = (bool) apply_filters( 'disable_captions', '' ); 168 168 $plugins = array( 'inlinepopups', 'spellchecker', 'tabfocus', 'paste', 'media', 'fullscreen', 'wordpress', 'wpeditimage', 'wpgallery', 'wplink', 'wpdialogs' ); 169 169 $first_run = true; 170 $ext_plugins = ''; 170 171 171 172 if ( $set['teeny'] ) { 172 173 self::$plugins = $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'fullscreen', 'wordpress', 'wplink', 'wpdialogs'), $editor_id ); 173 $ext_plugins = '';174 174 } else { 175 175 /* 176 176 The following filter takes an associative array of external plugins for TinyMCE in the form 'plugin_name' => 'url'. … … 181 181 */ 182 182 $mce_external_plugins = apply_filters('mce_external_plugins', array()); 183 183 184 $ext_plugins = '';185 184 if ( ! empty($mce_external_plugins) ) { 186 185 187 186 /* … … 247 246 248 247 $ext_plugins .= 'tinyMCEPreInit.load_ext("' . $plugurl . '", "' . $mce_locale . '");' . "\n"; 249 248 $ext_plugins .= 'tinymce.PluginManager.load("' . $name . '", "' . $url . '");' . "\n"; 250 251 self::$ext_plugins .= $ext_plugins;252 249 } 253 250 } 254 251 … … 259 256 $plugins[] = 'wpfullscreen'; 260 257 261 258 self::$plugins = $plugins; 259 self::$ext_plugins = $ext_plugins; 262 260 263 261 /* 264 262 translators: These languages show up in the spellchecker drop-down menu, in the order specified, and with the first