[wp-trac] [WordPress Trac] #33440: Deprecated PHP4 style constructor warnings make debugging hard

WordPress Trac noreply at wordpress.org
Tue Feb 16 23:19:41 UTC 2016


#33440: Deprecated PHP4 style constructor warnings make debugging hard
------------------------------------------------+----------------------
 Reporter:  McGuive7                            |       Owner:  ocean90
     Type:  enhancement                         |      Status:  closed
 Priority:  normal                              |   Milestone:  4.5
Component:  Widgets                             |     Version:  4.3
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  2nd-opinion dev-feedback has-patch  |     Focuses:
------------------------------------------------+----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36541"]:
 {{{
 #!CommitTicketReference repository="" revision="36541"
 Introduce a `$parent_class` parameter for `_deprecated_constructor()`.

 Use the parameter for the deprecated constructor warning in `WP_Widget` to
 provide an indication to which widget is using the PHP4 style constructor.

 Props sebastian.pisula.
 Fixes #33440.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33440#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list