From aa78c0e1adc255b80db02a535d4a51c19c4badd7 Mon Sep 17 00:00:00 2001 From: Sakib Date: Wed, 22 Jun 2016 14:31:57 +0600 Subject: [PATCH] Load widget correctly Remove notice: The called constructor method for WP_Widget in Shoestrap_Vcard_Widget is deprecated since version 4.3.0! Use __construct() instead. --- framework/bootstrap/includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/bootstrap/includes/widgets.php b/framework/bootstrap/includes/widgets.php index 56168010df..1ce646988f 100755 --- a/framework/bootstrap/includes/widgets.php +++ b/framework/bootstrap/includes/widgets.php @@ -17,7 +17,7 @@ class Shoestrap_Vcard_Widget extends WP_Widget { function __construct() { $widget_ops = array( 'classname' => 'widget_shoestrap_vcard', 'description' => __( 'Use this widget to add a vCard', 'shoestrap' ) ); - $this->WP_Widget( 'widget_shoestrap_vcard', __( 'Shoestrap: vCard', 'shoestrap' ), $widget_ops ); + parent::__construct( 'widget_shoestrap_vcard', __( 'Shoestrap: vCard', 'shoestrap' ), $widget_ops ); $this->alt_option_name = 'widget_shoestrap_vcard'; add_action( 'save_post', array( &$this, 'flush_widget_cache' ) );