Deprecated constructor method
-
This message is thrown on every page load.
[14-May-2016 22:20:36 UTC] PHP Notice: The called constructor method for WP_Widget in Sticky_Post_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /var/www/tec-dev.parrot-consulting.com/wp-includes/functions.php on line 3718
I have modified this method in my copy of the plugin in the following file.
sticky-post-instance.php
I changed this
– $this->WP_Widget( “{$this->prefix}sticky-post”, esc_attr__( ‘Sticky Post’, $this->textdomain ), $widget_options, $control_options );to this
+ parent::__construct( “{$this->prefix}sticky-post”, esc_attr__( ‘Sticky Post’, $this->textdomain ), $widget_options, $control_options );
I’m not sure if further updates are being made to this, plugin, but, if so, I would like to request that the constructor method be updated.
Thanks
The topic ‘Deprecated constructor method’ is closed to new replies.