[wp-trac] [WordPress Trac] #22249: Add ability to set or remove attributes on enqueued scripts and styles.
WordPress Trac
noreply at wordpress.org
Mon Dec 1 17:07:13 UTC 2014
#22249: Add ability to set or remove attributes on enqueued scripts and styles.
-------------------------------------------------+-------------------------
Reporter: ryanve | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future
Component: Script Loader | Release
Severity: normal | Version:
Keywords: dev-feedback has-patch reporter- | Resolution:
feedback 2nd-opinion needs-testing | Focuses:
-------------------------------------------------+-------------------------
Comment (by camdensegal):
I've added the same functionality for `wp_enqueue_style` and
`wp_register_style`. Though instead of having the attributes in a sub-
array I have it as the main array because the argument being replaced
(`$media`) is also an attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22249#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list