From 23133b0b06905549c9b2dcc6d660436f4b1bb787 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 20 Jan 2016 21:54:26 +0000 Subject: [PATCH] Widgets: Show the "Clear Inactive Widgets" button only after the sidebar with inactive widgets. Fixes #35447. Built from https://develop.svn.wordpress.org/trunk@36368 git-svn-id: http://core.svn.wordpress.org/trunk@36335 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index b91d35638c..4d23127fae 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -406,10 +406,13 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { if ( !empty( $registered_sidebar['class'] ) ) $wrap_class .= ' ' . $registered_sidebar['class']; + $is_inactive_widgets = 'wp_inactive_widgets' == $registered_sidebar['id']; ?>
+ +

@@ -427,8 +430,11 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {

+
+

+