* PHP4 constructor
*/
function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
- $this->__construct( $id_base, $name, $widget_options, $control_options );
+ WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
}
/**
}
$sidebars_widgets = wp_get_sidebars_widgets();
+ if ( empty( $sidebars_widgets ) )
+ return false;
if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
return false;
}
/**
- * Whether widget is displayied on the front-end.
+ * Whether widget is displayed on the front-end.
*
* Either $callback or $id_base can be used
* $id_base is the first argument when extending WP_Widget class