From 36dd60705f6a0383a02bcf50808895498169faf5 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 2 Dec 2014 20:39:13 +0000 Subject: [PATCH] Editor: hide the DFW v2 button when editor-expand is off. Fixes #30568. git-svn-id: https://develop.svn.wordpress.org/trunk@30711 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/edit.css | 10 ++++++++++ src/wp-admin/includes/template.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index 66d42d1148..6f30221831 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -1244,6 +1244,16 @@ table.links-table { /* DFW 2 -------------------------------------------------------------- */ +#wp-content-wrap .mce-wp-dfw, +#qt_content_dfw { + display: none; +} + +.wp-editor-expand #wp-content-wrap .mce-wp-dfw, +.wp-editor-expand #qt_content_dfw { + display: inline-block; +} + .focus-on .wrap > h2, .focus-on #wpfooter, .focus-on .postbox-container, diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index c1cb697405..daba46c315 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -2044,7 +2044,7 @@ final class WP_Internal_Pointers { public static function pointer_wp410_dfw() { // Don't show when editor-scrolling is not used. - if ( empty( $GLOBALS['_content_editor_dfw'] ) ) { + if ( empty( $GLOBALS['_wp_editor_expand'] ) ) { return; }