[wp-trac] [WordPress Trac] #25277: WP_scripts does not allow to add data after the enque has been added to HTML
WordPress Trac
noreply at wordpress.org
Mon Jan 5 20:58:24 UTC 2015
#25277: WP_scripts does not allow to add data after the enque has been added to
HTML
-----------------------------+-----------------------------
Reporter: hakre | Owner: wonderboymusic
Type: feature request | Status: reopened
Priority: normal | Milestone: 4.2
Component: Script Loader | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Changes (by azaozz):
* status: closed => reopened
* resolution: fixed =>
Comment:
We are getting into JS land here. Don't think this is a good idea, mostly
because it doesn't guarantee the "data-after" will be immediately after
the actual script. It will be after all scripts when concatenating. That
makes it pretty much unusable.
For the very rare cases where this might be needed, it can be done from
PHP by using the same action with higher priority. No need to add specific
support/hand-holding in WP_Scripts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25277#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list