Make WordPress Core


Ignore:
Timestamp:
08/07/2011 05:03:18 PM (15 years ago)
Author:
azaozz
Message:

WP_Editor: don't show empty div if no editor-buttons and media-buttons are shown, props ocean90, see #17144

File:
1 edited

Legend:

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

    r18516 r18519  
    8383            echo $set['editor_css'] . "\n";
    8484
    85         if ( $this->can_richedit || $set['media_buttons'] ) {
     85        if ( !empty($buttons) || $set['media_buttons'] ) {
    8686            echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools">';
    8787            echo $buttons;
     
    476476        }
    477477
    478     //  reset($this->mce_settings);
    479     //  $key = key($this->mce_settings);
    480 
    481478        $ref = array(
    482479            'plugins' => implode( ',', $this->plugins ),
Note: See TracChangeset for help on using the changeset viewer.