WordPress.org

Make WordPress Core

Changeset 11580


Ignore:
Timestamp:
06/16/09 03:10:49 (5 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/widgets.php

    r11510 r11580  
    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.