Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:29:21 PM (12 years ago)
Author:
nacin
Message:

Remove redundant isset() and empty() checks.

File:
1 edited

Legend:

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

    r13701 r13770  
    967967    $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index);
    968968    $sidebars_widgets = wp_get_sidebars_widgets();
    969     if ( isset($sidebars_widgets[$index]) && !empty($sidebars_widgets[$index]) )
     969    if ( !empty($sidebars_widgets[$index]) )
    970970        return true;
    971971
Note: See TracChangeset for help on using the changeset viewer.