[wp-trac] [WordPress Trac] #51837: Adding `add_theme_support` for html5 for scripts, does not remove the type attribute from `wp-emoji-release.min.js`
WordPress Trac
noreply at wordpress.org
Fri Nov 20 17:14:58 UTC 2020
#51837: Adding `add_theme_support` for html5 for scripts, does not remove the type
attribute from `wp-emoji-release.min.js`
---------------------------+-----------------------------
Reporter: kanlukasz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.5.3
Severity: normal | Keywords: needs-patch
Focuses: |
---------------------------+-----------------------------
This is a follow-up to #42804.
Using: `add_theme_support('html5', ['script', 'style']);` removes the type
attribute from my custom scripts but does not remove it from the default
`wp-emoji-release.min.js`
Eg.:
`<script src="https://example.com/wp-includes/js/wp-emoji-
release.min.js?ver=5.5.3" type="text/javascript" defer=""></script>`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51837>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list