is_active_sidebar() should use wp_get_sidebars_widgets(), props greenshady and Denis-de-Bernardy, fixes #10136 for 2.8.1

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-06-16 03:10:49 +00:00
parent c2cea0e3ed
commit a013a45eff
1 changed files with 1 additions and 1 deletions

View File

@ -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;