WordPress.org

Make WordPress Core

Changeset 15994


Ignore:
Timestamp:
10/27/2010 01:56:54 AM (9 years ago)
Author:
nacin
Message:

Return empty array in wp_get_sidebars_widgets() if no sidebars are defined. fixes #14876.

File:
1 edited

Legend:

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

    r15590 r15994  
    996996        _deprecated_argument( __FUNCTION__, '2.8.1' );
    997997
     998    if ( ! current_theme_supports( 'widgets' ) )
     999        return array();
     1000
    9981001    global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets;
    9991002
Note: See TracChangeset for help on using the changeset viewer.