[wp-trac] [WordPress Trac] #32480: Add _doing_it_wrong method call to WP_Widget PHP4 style constructor

WordPress Trac noreply at wordpress.org
Mon May 25 13:38:01 UTC 2015


#32480: Add _doing_it_wrong method call to WP_Widget PHP4 style constructor
------------------------------------+------------------------------
 Reporter:  welcher                 |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Widgets                 |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by welcher):

 Thanks for the clarifications!

 I should have been more clear in my original statement. What I was meaning
 was that since WP supports versions of PHP that still support PHP4 style
 of constructors - we can't just remove them and the addition of a
 `_doing_it_wrong` call will hopefully prompt updating to the PHP5 syntax.

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


More information about the wp-trac mailing list