#32872 closed defect (bug) (invalid)
Deprecated Notice: Constructor Method for WP_Widget since 4.3.0
| Reported by: | baden03 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
11 years ago
- Resolution → invalid
- Status new → closed
Huzzah! This is what I was looking for but could not find.
Thank you. Non-bug issue resolved.
#5
@
11 years ago
- Resolution invalid
- Status closed → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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 :)