[wp-trac] [WordPress Trac] #10861: Clean up constructors and destructors

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 27 00:51:21 UTC 2009


#10861: Clean up constructors and destructors
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9  
Component:  General       |     Version:  2.8.4
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by jacobsantos):

 Replying to [comment:10 dd32]:
 > I think that code is to call the child classes that extend it perhaps?
 (Not sure its needed though.. Just checking)
 That doesn't exactly make sense. The child classes can define their own
 arguments. Actually, the entire WP_Dependencies violates proper object-
 oriented practices, so it makes sense it would be ass backward. I think it
 tries too hard to be a Iterator, except without PHP5, it fails in its
 attempt.

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


More information about the wp-trac mailing list