Skip to content

Commit 4d5d018

Browse files
committed
Deprecate PHP4 constructor usage in widgets. This is deprecated in upcoming PHP versions.
1 parent c134091 commit 4d5d018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/abstracts/abstract-wc-widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct() {
5555
'description' => $this->widget_description
5656
);
5757

58-
$this->WP_Widget( $this->widget_id, $this->widget_name, $widget_ops );
58+
parent::__construct( $this->widget_id, $this->widget_name, $widget_ops );
5959

6060
add_action( 'save_post', array( $this, 'flush_widget_cache' ) );
6161
add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) );

0 commit comments

Comments
 (0)