is_active_sidebar() should use wp_get_sidebars_widgets(), props greenshady and Denis-de-Bernardy, fixes #10136
git-svn-id: https://develop.svn.wordpress.org/trunk@11562 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a8563f5d00
commit
59b44738e0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user