Title: WordPress 4.3: Deprecated Constructor
Last modified: August 30, 2016

---

# WordPress 4.3: Deprecated Constructor

 *  Resolved [scm6079](https://wordpress.org/support/users/scm6079/)
 * (@scm6079)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/)
 * Since upgrading to WordPress 4.3, it looks like there is a small change that 
   needs made:
 * Notice: The called constructor method for WP_Widget is **deprecated** since version
   4.3.0! Use
 *     ```
       __construct()
       ```
   
 *  instead.
 * pinterest-rss-widget.php:158
 * [https://wordpress.org/plugins/pinterest-rss-widget/](https://wordpress.org/plugins/pinterest-rss-widget/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [coffee4life](https://wordpress.org/support/users/coffee4life/)
 * (@coffee4life)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/#post-6480599)
 * Here’s a patch.
 *     ```
       Index: pinterest-rss-widget.php
       ===================================================================
       --- pinterest-rss-widget.php
       +++ pinterest-rss-widget.php
       @@ -153,9 +153,9 @@
        add_shortcode('prw', 'prw_shortcode');
   
        class Pinterest_RSS_Widget extends WP_Widget {
       -  function Pinterest_RSS_Widget() {
       +  function __construct() {
            $widget_ops = array('classname' => 'pinterest_rss_widget', 'description' => 'A widget to display latest Pinterest Pins via RSS feed' );
       -    $this->WP_Widget('pinterest_rss_widget', 'Pinterest RSS Widget', $widget_ops);
       +    parent::__construct('pinterest_rss_widget', 'Pinterest RSS Widget', $widget_ops);
          }
   
          function widget($args, $instance) {
       ```
   
 *  Plugin Author [bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/)
 * (@bkmacdaddy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/#post-6480605)
 * **coffee4life:** are you sure this fixes the error? If so, I will implement in
   a new version immediately. I don’t have time to test right now but if this is
   the fix I will get it uploaded. Please let me know – and thank you for your help!
 *  Thread Starter [scm6079](https://wordpress.org/support/users/scm6079/)
 * (@scm6079)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/#post-6480620)
 * Seems to be working nicely! 🙂 Problem solved!
 * Thanks [@coffee4life](https://wordpress.org/support/users/coffee4life/)
 * -Scott
 * PS – [@bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/), this looks
   like it matches the changes WordPress announced need made in the 4.3 release 
   blog. I vote to integrate the change.
 *  Plugin Author [bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/)
 * (@bkmacdaddy)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/#post-6480637)
 * Just uploaded new version 2.3.1 with the change above. Please let me know if 
   there are any issues. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress 4.3: Deprecated Constructor’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pinterest-rss-widget_c6ccca.svg)
 * [Pinterest RSS Widget](https://wordpress.org/plugins/pinterest-rss-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-rss-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-rss-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-rss-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-rss-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-rss-widget/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [bkmacdaddy](https://wordpress.org/support/users/bkmacdaddy/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-43-deprecated-constructor/#post-6480637)
 * Status: resolved