From cb0b89a71cf305e7f31561401b64f1747edf6da7 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 14 Jun 2009 08:37:07 +0000 Subject: [PATCH] is_active_sidebar() should use wp_get_sidebars_widgets(), props greenshady and Denis-de-Bernardy, fixes #10136 git-svn-id: http://svn.automattic.com/wordpress/trunk@11562 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index dadca24f52..f38da78e56 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -935,7 +935,7 @@ function is_dynamic_sidebar() { */ function is_active_sidebar( $index ) { $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index); - $sidebars_widgets = get_option( 'sidebars_widgets', array() ); + $sidebars_widgets = wp_get_sidebars_widgets(false); if ( isset($sidebars_widgets[$index]) && !empty($sidebars_widgets[$index]) ) return true;