WordPress.org

Make WordPress Core

Changeset 11562


Ignore:
Timestamp:
06/14/2009 08:37:07 AM (9 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r11510 r11562  
    936936function is_active_sidebar( $index ) {
    937937    $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index);
    938     $sidebars_widgets = get_option( 'sidebars_widgets', array() );
     938    $sidebars_widgets = wp_get_sidebars_widgets(false);
    939939    if ( isset($sidebars_widgets[$index]) && !empty($sidebars_widgets[$index]) )
    940940        return true;
Note: See TracChangeset for help on using the changeset viewer.