From 58082f28e6cd44a21a9a15809565f71a31bd318c Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 20 Jan 2016 21:54:01 +0000 Subject: [PATCH] Widgets: Show the "Clear Inactive Widgets" button only after the sidebar with inactive widgets. Fixes #35447. git-svn-id: https://develop.svn.wordpress.org/trunk@36368 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/widgets.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php index b91d35638c..4d23127fae 100644 --- a/src/wp-admin/widgets.php +++ b/src/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 ) {

+
+

+