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

git-svn-id: https://develop.svn.wordpress.org/trunk@18519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-08-07 17:03:18 +00:00
parent aabac42c0f
commit 4feac2cbde
2 changed files with 2 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ class WP_Editor {
if ( !empty($set['editor_css']) )
echo $set['editor_css'] . "\n";
if ( $this->can_richedit || $set['media_buttons'] ) {
if ( !empty($buttons) || $set['media_buttons'] ) {
echo '<div id="wp-' . $editor_id . '-editor-tools" class="wp-editor-tools">';
echo $buttons;
@@ -475,9 +475,6 @@ class WP_Editor {
$qtInit = '{}';
}
// reset($this->mce_settings);
// $key = key($this->mce_settings);
$ref = array(
'plugins' => implode( ',', $this->plugins ),
'theme' => 'advanced',