Title: Deprecated WP_Widget constructor used
Last modified: August 30, 2016

---

# Deprecated WP_Widget constructor used

 *  Resolved [SFLeBrun](https://wordpress.org/support/users/sflebrun/)
 * (@sflebrun)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/)
 * In Version 2.1.0.2 of Custom Sidebars, if DEBUG is enabled, you can get a Deprecation
   Warning from WordPress due to part of the Custom Sidebars code using PHP4 constructors.
   WordPress as of version 4.3 no longer supports PHP 4 constructor syntax.
 * The problem is being generated in the file customsidebars.php on line 80 where
   the constructor for the class CustomSidebarsEmptyPlugin calls the parent, WP_Widget,
   constructor.
 * Changing code “parent::WP_Widget(…)” to “parent::__construct(…)” will prevent
   the warning message. The deprecated WP_Widget() constructor calls its __construct()
   with the same parameters, after calling the WordPress function _deprecated_constructor().
 * [https://wordpress.org/plugins/custom-sidebars/](https://wordpress.org/plugins/custom-sidebars/)

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

 *  [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554157)
 * Hey there SFLeBrun,
 * Hope you’re well today 🙂
 * We’re aware of this warning and this has already been reported to our developer
   so it can be fixed in one of the following updates.
 * Thank you for taking time to report this and have a nice day 🙂
 * Best regards,
    Bojan
 *  [fightthecurrent](https://wordpress.org/support/users/fightthecurrent/)
 * (@fightthecurrent)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554345)
 * Hey Bojan!
 * This is still an issue 5 months later. Can this be reprioritized?
 *  [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554346)
 * Hey there fightthecurrent,
 * This is just a warning so it’s not really affecting how the plugin works nor 
   it causes any critical errors.
 * Please don’t take this the wrong way we’ll definitely fix this I just can’t promise
   this will get any high priority as this is not really a critical error if that
   makes sense.
 * Have a great day!
 * Cheers,
    Bojan
 *  [Uranbold](https://wordpress.org/support/users/uranbold/)
 * (@uranbold)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554347)
 * Hello,
 * We have included this plugin on our Premium Themes, However it’s not affecting
   working process but we need to fix it.
 * Fixing is so simple and if you guys have git i can fix it myself.
 * Thanks.
 *  [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554348)
 * Hey there,
 * We’ll have an update soon since the plugin hasn’t been updated in while and the
   update will include the fix for this warning.
 * Appreciate your help 🙂
 * Cheers,
    Bojan

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

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

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

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

 * 5 replies
 * 4 participants
 * Last reply from: [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/deprecated-wp_widget-constructor-used/#post-6554348)
 * Status: resolved