--- a/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-posts.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/widget-posts.php Tue Dec 15 13:49:49 2020 +0100
@@ -17,7 +17,7 @@
/* Widget Setup
/*-----------------------------------------------------------------------------------*/
-function post_Widget() {
+function __construct() {
$widget_options = array(
'classname' => 'post_widget',
@@ -29,7 +29,7 @@
'id_base' => 'post_widget'
);
- $this->WP_Widget( 'post_widget', 'Post Widget', $widget_options, $control_options );
+ parent::__construct( 'post_widget', 'Post Widget', $widget_options, $control_options );
}