[wp-trac] [WordPress Trac] #16768: PHP5-port - Class Constructors Review for 3.2

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 30 10:35:46 UTC 2011


#16768: PHP5-port - Class Constructors Review for 3.2
-------------------------+-----------------------
 Reporter:  hakre        |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.2
Component:  General      |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by ampt):

 The errors are from a plugin which uses a subclass of
 {{{WP_Text_Diff_Renderer}}} so its not a part of core, but this affects
 anyone wanting to subclass {{{WP_Text_Diff_Renderer}}}.

 As far as PHP5 is concerned a constructor is a constructor, it doesn't
 seem to matter if the  constructor is defined as the class name or
 defined as {{{__construct}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16768#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list