TinyMCE: remove the 'spellchecker' plugin. It has been disabled for a while and the back-end currently doesn't work. See #24067.

git-svn-id: https://develop.svn.wordpress.org/trunk@26958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2014-01-15 19:06:26 +00:00
parent b119e5ff37
commit 57a26d2e31
14 changed files with 6 additions and 2305 deletions

View File

@@ -237,6 +237,12 @@ final class _WP_Editors {
'wpdialogs',
) ) );
if ( ( $key = array_search( 'spellchecker', $plugins ) ) !== false ) {
// Remove 'spellchecker' from the internal plugins if added with 'tiny_mce_plugins' filter to prevent errors.
// It can be added with 'mce_external_plugins'.
unset( $plugins[$key] );
}
if ( ! empty( $mce_external_plugins ) ) {
/**
* This filter loads translations for external TinyMCE 3.x plugins.
@@ -326,11 +332,6 @@ final class _WP_Editors {
self::$first_init['external_plugins'] = json_encode( $mce_external_plugins );
}
if ( in_array( 'spellchecker', $plugins, true ) ) {
self::$first_init['spellchecker_rpc_url'] = self::$baseurl . '/plugins/spellchecker/rpc.php';
self::$first_init['spellchecker_language'] = self::$mce_locale;
}
// WordPress default stylesheet
$mce_css = array( self::$baseurl . '/skins/wordpress/wp-content.css' );