Make WordPress Core

Changeset 26958 for trunk


Ignore:
Timestamp:
01/15/2014 07:06:26 PM (11 years ago)
Author:
azaozz
Message:

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

Location:
trunk/src/wp-includes
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r26934 r26958  
    237237                        'wpdialogs',
    238238                    ) ) );
     239
     240                    if ( ( $key = array_search( 'spellchecker', $plugins ) ) !== false ) {
     241                        // Remove 'spellchecker' from the internal plugins if added with 'tiny_mce_plugins' filter to prevent errors.
     242                        // It can be added with 'mce_external_plugins'.
     243                        unset( $plugins[$key] );
     244                    }
    239245
    240246                    if ( ! empty( $mce_external_plugins ) ) {
     
    325331                if ( ! empty( $mce_external_plugins ) ) {
    326332                    self::$first_init['external_plugins'] = json_encode( $mce_external_plugins );
    327                 }
    328 
    329                 if ( in_array( 'spellchecker', $plugins, true ) ) {
    330                     self::$first_init['spellchecker_rpc_url'] = self::$baseurl . '/plugins/spellchecker/rpc.php';
    331                     self::$first_init['spellchecker_language'] = self::$mce_locale;
    332333                }
    333334
Note: See TracChangeset for help on using the changeset viewer.