Changeset 45590 for trunk/src/wp-includes/class-wp-editor.php
- Timestamp:
- 07/02/2019 11:41:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r45172 r45590 159 159 $tabindex = $set['tabindex'] ? ' tabindex="' . (int) $set['tabindex'] . '"' : ''; 160 160 $default_editor = 'html'; 161 $buttons = $autocomplete = ''; 161 $buttons = ''; 162 $autocomplete = ''; 162 163 $editor_id_attr = esc_attr( $editor_id ); 163 164 … … 438 439 $plugins = array_unique( apply_filters( 'tiny_mce_plugins', $plugins ) ); 439 440 440 if ( ( $key = array_search( 'spellchecker', $plugins ) ) !== false ) { 441 $key = array_search( 'spellchecker', $plugins ); 442 if ( false !== $key ) { 441 443 // Remove 'spellchecker' from the internal plugins if added with 'tiny_mce_plugins' filter to prevent errors. 442 444 // It can be added with 'mce_external_plugins'. … … 582 584 */ 583 585 $mce_buttons = apply_filters( 'teeny_mce_buttons', array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' ), $editor_id ); 584 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 586 $mce_buttons_2 = array(); 587 $mce_buttons_3 = array(); 588 $mce_buttons_4 = array(); 585 589 } else { 586 590 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'wp_more', 'spellchecker' ); … … 647 651 $body_class = $editor_id; 648 652 649 if ( $post = get_post() ) { 653 $post = get_post(); 654 if ( $post ) { 650 655 $body_class .= ' post-type-' . sanitize_html_class( $post->post_type ) . ' post-status-' . sanitize_html_class( $post->post_status ); 651 656 … … 1461 1466 1462 1467 $tmce_on = ! empty( self::$mce_settings ); 1463 $mceInit = $qtInit = ''; 1468 $mceInit = ''; 1469 $qtInit = ''; 1464 1470 1465 1471 if ( $tmce_on ) {
Note: See TracChangeset
for help on using the changeset viewer.