[wp-trac] [WordPress Trac] #10861: Clean up constructors and destructors
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 28 15:07:10 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 hakre):
Replying to [comment:15 filosofo]:
> Replying to [comment:13 jacobsantos]:
> > That makes more sense, except it is not needed. The WP_Styles and
WP_Scripts doesn't have any arguments,
>
> WP_Styles and WP_Scripts constructors call wp_default_styles() and
wp_default_scripts(), respectively.
I've checked that, it's true. But IMHO this is the opposite of a straight
forward way doing things. I will create a patch reflecting one of the two
cases while looking for a valid PHP4 implementation that PHP5 is able to
deal with the same way.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10861#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list