mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user