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

WordPress Trac noreply at wordpress.org
Thu Aug 20 20:06:00 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 jorbin):

 I've submitted a patch via slack to @nacin for Log Deprecated Notices to
 include deprecated constructor support.

 Are we able to guarantee that WP_Widget will never be called staticly and
 thus without $this being set?  If get_class() is called with anything
 other than an object, an E_WARNING level error is raised.

 New translatable strings are fine for 4.4.  I'm sure there will be plenty
 of them.

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


More information about the wp-trac mailing list