[wp-trac] [WordPress Trac] #10861: Clean up constructors and destructors
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 27 04:50:43 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):
That makes more sense, except it is not needed. The WP_Styles and
WP_Scripts doesn't have any arguments, and putting the PHP4 constructors
would not hinder readability in any way. It would make sense if the
WP_Dependencies was going to be used in many more places, but it is
specific container for redundant code, so that is unlikely.
PS: I was thinking of the {{{*_Walker}}} classes when I was talking about
the iterators.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10861#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list