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

WordPress Trac noreply at wordpress.org
Thu Aug 20 01:28:07 UTC 2015


#33440: Deprecated PHP4 style constructor warnings make debugging hard
------------------------------------------------+--------------------------
 Reporter:  McGuive7                            |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Widgets                             |  Review
 Severity:  normal                              |     Version:  4.3
 Keywords:  has-patch 2nd-opinion dev-feedback  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------

Comment (by dd32):

 Arguably switching out `WP_Widget` for `get_class( $this )` is incorrect,
 as the constructor for the current class isn't deprecated at all, it's
 that that class is calling `parent::WP_Widget()` instead.

 That being said, if we can include the actual widget in question here
 somehow that'd be great for debugging.. but it's also worth noting that
 for all other cases of deprecated notices, we don't/can't detect what is
 causing the deprecated notice in a performant manner.

 [https://wordpress.org/plugins/log-deprecated-notices/ The Log Deprecated
 Notices] plugin hasn't been updated, but one of it's features is to do a
 back-trace to locate what plugin/class/function/method/arguement the
 notice is actually refering to.

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


More information about the wp-trac mailing list