WordPress.org

Make WordPress Core

Changeset 17545


Ignore:
Timestamp:
03/23/11 18:59:52 (3 years ago)
Author:
nacin
Message:

Bail early in dynamic_sidebar() if there are no sidebars. fixes #14816.

File:
1 edited

Legend:

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

    r16521 r17545  
    855855 
    856856    $sidebars_widgets = wp_get_sidebars_widgets(); 
     857    if ( empty( $sidebars_widgets ) ) 
     858        return false; 
    857859 
    858860    if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) ) 
Note: See TracChangeset for help on using the changeset viewer.