Title: Deprecated constructor method
Last modified: August 31, 2016

---

# Deprecated constructor method

 *  [tdmoose](https://wordpress.org/support/users/tdmoose/)
 * (@tdmoose)
 * [10 years ago](https://wordpress.org/support/topic/deprecated-constructor-method-1/)
 * 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
 * [https://wordpress.org/plugins/sticky-post/](https://wordpress.org/plugins/sticky-post/)

The topic ‘Deprecated constructor method’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sticky-post_962121.svg)
 * [Sticky Post](https://wordpress.org/plugins/sticky-post/)
 * [Support Threads](https://wordpress.org/support/plugin/sticky-post/)
 * [Active Topics](https://wordpress.org/support/plugin/sticky-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sticky-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sticky-post/reviews/)

## Tags

 * [deprecated-method](https://wordpress.org/support/topic-tag/deprecated-method/)

 * 0 replies
 * 1 participant
 * Last reply from: [tdmoose](https://wordpress.org/support/users/tdmoose/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/deprecated-constructor-method-1/)
 * Status: not resolved