WP_Widget is deprecated since version 4.3.0!

Discussion in 'BusinessGrow One Page WordPress Theme' started by logicaldog, Sep 24, 2015.

  1. logicaldog

    logicaldog New Member

    Joined:
    Sep 23, 2015
    Messages:
    7
    Likes Received:
    0
    I just upgraded WP, and installed Business Grow theme. I get the error
    Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in [...]\wp-includes\functions.php on line 3457
    Is this something you can fix with an update? I read that it has to do with plug-ins but I only have the latest Akismet installed. No other plug-ins at all.
     
  2. priya

    priya Guest

    Hello,

    Greetings from InkThemes!

    You can hide this kind of error by adding below code in your "functions.php" file:

    Code:
    add_filter('deprecated_constructor_trigger_error', '__return_false');
    I hope it helps you..

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. logicaldog

    logicaldog New Member

    Joined:
    Sep 23, 2015
    Messages:
    7
    Likes Received:
    0
    Thanks for the quick response. So I can hide it but I can't fix it?
     
  4. priya

    priya Guest

    Hello,

    Sure, you can fix it by using the above code as I have provided you earlier..

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     

Share This Page