#32872 closed defect (bug) (invalid)
Deprecated Notice: Constructor Method for WP_Widget since 4.3.0
Reported by: | baden03 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.3 |
Component: | Widgets | Keywords: | |
Focuses: | Cc: |
Description
The following Notice is being thrown, and since I could find no ticket on it, I though I would open one.
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead. in /var/www/vhosts/.../wp-includes/functions.php on line 3456
After a bit of trouble shooting it seems that any plugin that uses the Widgets_API
class My_Widget extends WP_Widget { ... }
Change History (7)
#2
@
10 years ago
- Resolution set to invalid
- Status changed from new to closed
Huzzah! This is what I was looking for but could not find.
Thank you. Non-bug issue resolved.
#5
@
9 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
I think this will help to solve the problem https://wordpress.org/support/topic/notice-wp_widget-is-deprecated-since-version-430?replies=27#post-7532119
Note: See
TracTickets for help on using
tickets.
Hello,
this should explain it https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/
It is not a bug :)