[wp-trac] [WordPress Trac] #32872: Deprecated Notice: Constructor Method for WP_Widget since 4.3.0

WordPress Trac noreply at wordpress.org
Fri Jul 3 09:21:27 UTC 2015


#32872: Deprecated Notice: Constructor Method for WP_Widget since 4.3.0
--------------------------+-----------------------------
 Reporter:  baden03       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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
 [https://codex.wordpress.org/Widgets_API Widgets_API]


 {{{
 class My_Widget extends WP_Widget {
    ...
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32872>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list