WordPress.org

Make WordPress Core

Opened 13 days ago

Last modified 13 days ago

#44551 new defect (bug)

Inline scripts should be printed for sourceless scripts

Reported by: bpayton Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.7
Component: Script Loader Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

Today, inline scripts aren't printed for sourceless scripts, but inline styles are printed for sourceless styles.

It would be helpful to fix this for inline scripts.

This issue came up while exploring an approach to loading polyfills (feature tests + implementations) for Gutenberg.

I have a patch with unit tests and will post momentarily.

Attachments (1)

44551.diff (4.4 KB) - added by bpayton 13 days ago.
fix and unit tests

Download all attachments as: .zip

Change History (2)

@bpayton
13 days ago

fix and unit tests

#1 @bpayton
13 days ago

  • Keywords has-patch has-unit-tests added
Note: See TracTickets for help on using tickets.