[wp-trac] [WordPress Trac] #22249: Add ability to set or remove attributes on enqueued scripts and styles.

WordPress Trac noreply at wordpress.org
Tue Feb 23 03:59:36 UTC 2016


#22249: Add ability to set or remove attributes on enqueued scripts and styles.
----------------------------------------+------------------------
 Reporter:  ryanve                      |       Owner:  chriscct7
     Type:  feature request             |      Status:  assigned
 Priority:  normal                      |   Milestone:  4.5
Component:  Script Loader               |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------

Comment (by westonruter):

 @ericlewis can `get_script_src()` use `esc_url_raw()` instead of
 `esc_url()` when it returns? It would be more useful to add HTML entities
 via `esc_url()` at the point where it gets written into HTML, so the
 method can be used for other purposes (e.g. listing out scripts enqueued
 in the response for a given request to render in Selective Refresh
 partials).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22249#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list