Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r16521 r18096  
    7575     */
    7676    function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
    77         $this->__construct( $id_base, $name, $widget_options, $control_options );
     77        WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    7878    }
    7979
     
    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]) )
     
    898900
    899901/**
    900  * Whether widget is displayied on the front-end.
     902 * Whether widget is displayed on the front-end.
    901903 *
    902904 * Either $callback or $id_base can be used
Note: See TracChangeset for help on using the changeset viewer.