[wp-trac] [WordPress Trac] #16768: PHP5-port - Class Constructors Review for 3.2
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 18 03:04:21 UTC 2011
#16768: PHP5-port - Class Constructors Review for 3.2
------------------------------------+------------------
Reporter: hakre | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.2
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by scribu):
[attachment:widgets.16768.diff] moves widget classes to
{{{__construct()}}}.
The PHP4 constructor in WP_Widget can't be removed because it's likely
used by plugins.
Patch also fixes the way WP_Widget::WP_Widget() calls {{{__construct()}}},
avoiding an [http://wordpress.stackexchange.com/questions/14965/why-will-
using-construct-instead-of-widget-class-name-when-creating-widget-trig
endless loop].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16768#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list