Merge pull request #8484 from JustinSainton/php4-widget-compliance

Deprecate PHP4 constructor usage in widgets.
This commit is contained in:
Claudio Sanches 2015-06-29 17:00:50 -03:00
commit 47fbef49c9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ abstract class WC_Widget extends WP_Widget {
'description' => $this->widget_description
);
$this->WP_Widget( $this->widget_id, $this->widget_name, $widget_ops );
parent::__construct( $this->widget_id, $this->widget_name, $widget_ops );
add_action( 'save_post', array( $this, 'flush_widget_cache' ) );
add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) );