mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user