Support » Plugin: Pinterest RSS Widget » WordPress 4.3: Deprecated Constructor

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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


    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!

    Seems to be working nicely! 🙂 Problem solved!

    Thanks @coffee4life


    PS – @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


    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.