[wp-trac] [WordPress Trac] #13592: script_loader_src and style_loader_tag filters

WordPress Trac noreply at wordpress.org
Thu Nov 20 05:22:18 UTC 2014


#13592: script_loader_src and style_loader_tag filters
---------------------------+--------------------------
 Reporter:  olivM          |       Owner:  johnbillion
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  4.1
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+--------------------------

Comment (by johnbillion):

 r30403 adds a `script_loader_tag` filter which matches the
 `style_loader_tag` filter for styles.

 The complete tag is passed into the filter. It would make no difference if
 `%s` was passed as the src attribute because you still need to do a string
 replacement in order to avoid stomping changes made by something else
 using the same filter (for example, another plugin which adds a new
 attribute to the tag).

 The handle and src attribute are passed as parameters to the filter.

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


More information about the wp-trac mailing list