[wp-trac] [WordPress Trac] #21633: Switch to min.js convention
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 19 19:39:52 UTC 2012
#21633: Switch to min.js convention
----------------------------+------------------
Reporter: nbachiyski | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------
Comment (by scribu):
Replying to [comment:3 nacin]:
> > With this I would also give a vote for a new arg $dev in
WP_SCRIPTS/WP_STYLES API which controls minified files.
>
> I like this, though I'm not sure how I feel about a new argument on
wp_register/enqueue_script. There are probably three or four proposed new
parameters for this function across Trac. I think it is time to convert
$in_footer = false to an array of extra arguments, so 'footer' => true and
the like. (As scribu just recommended as well.)
Converting $in_footer to an array of extra arguments seems rather
arbitrary to me, since only $handle and $src are required. I was thinking
more along these lines:
{{{
wp_register_script( $handle, $src, array( ... ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21633#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list