[wp-trac] [WordPress Trac] #22249: Add ability to set or remove attributes on enqueued scripts and styles.
WordPress Trac
noreply at wordpress.org
Wed Feb 24 03:01:47 UTC 2016
#22249: Add ability to set or remove attributes on enqueued scripts and styles.
---------------------------------------------+-----------------------------
Reporter: ryanve | Owner:
Type: feature request | Status: assigned
Priority: normal | Milestone: Future Release
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: needs-refresh early needs-patch | Focuses:
---------------------------------------------+-----------------------------
Changes (by ericlewis):
* keywords: has-patch needs-refresh needs-unit-tests => needs-refresh
early needs-patch
Comment:
@ocean90 said
> IMO get_script_attributes() shouldn't return the $src value. I'd call it
get_(script)_additonal_attributes().
that sounds good to me.
Let's revisit this in 4.6 early.
In the meantime, if anyone would like to write
[https://core.trac.wordpress.org/ticket/22249#comment:32 a new patch with
@ocean90's considerations in mind], be my guest. Our implementation for
scripts has come together, so the next patch can include an implementation
for styles.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22249#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list