[wp-trac] [WordPress Trac] #3372: Consolidated JavaScript/CSS Plugin API
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 14 18:15:57 UTC 2012
#3372: Consolidated JavaScript/CSS Plugin API
--------------------------------------+-----------------------------
Reporter: robertaccettura | Owner: anonymous
Type: feature request | Status: reopened
Priority: lowest | Milestone: Future Release
Component: JavaScript | Version: 2.1
Severity: normal | Resolution:
Keywords: needs-patch dev-feedback |
--------------------------------------+-----------------------------
Changes (by CaptainN):
* cc: CaptainN (added)
Comment:
Is there any interest in a patch for this?
My stab at the things at a minimums to address for theme side use of
concatenation:
- A new argument for wp_register_script, wp_enqueue_script, etc. at the
end of the list - $allowConcat, defaulted to false. This would allow
scripts to opt in to concatenation. Many (all?) of the core libs are
concat safe, so they could be set to true by default.
- unit tests.
With this data in place the existing WP_Scripts concat stuff could be used
(with maybe some minor edits) to implement the rest.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/3372#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list