Changeset 30573 for trunk/src/wp-includes/class-wp-editor.php
- Timestamp:
- 11/26/2014 02:49:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r30536 r30573 184 184 $wrap_class = 'wp-core-ui wp-editor-wrap ' . $switch_class; 185 185 186 if ( $set[' dfw'] ) {186 if ( $set['_content_editor_dfw'] ) { 187 187 $wrap_class .= ' has-dfw'; 188 188 } … … 279 279 $qtInit['buttons'] .= ',fullscreen'; 280 280 281 if ( $ editor_id === 'content' && ! wp_is_mobile() )281 if ( $set['_content_editor_dfw'] ) { 282 282 $qtInit['buttons'] .= ',dfw'; 283 } 283 284 284 285 /** … … 550 551 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 551 552 } else { 552 $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' , 'wp_adv');553 554 if ( $ editor_id) {553 $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' ); 554 555 if ( $set['_content_editor_dfw'] ) { 555 556 $mce_buttons[] = 'dfw'; 556 557 } else { 557 558 $mce_buttons[] = 'fullscreen'; 558 559 } 560 561 $mce_buttons[] = 'wp_adv'; 559 562 560 563 /**
Note: See TracChangeset
for help on using the changeset viewer.