Update WP_Script
logic surrounding wp_add_inline_script
function to handle standalone vs non standalone logic.
#19
Labels
15
Estimate of 15 points
Script Loading Strategy
Issues relating to the Script Loading Strategy (WPP)
type:enhancement
New feature or request.
Milestone
Description
As per issue 15 where a means to opt in a script as standalone has been introduced, logic within the WP_Scripts class that handle the printing of inline scripts should be amended so that any inline script that specifies a $standalone = true approach bypasses all further logic that determines its parents load handler,
type="module"
etc.Acceptance Criteria
before
orafter
.Unit Tests
wp_add_inline_script
method currently reside in WordPress core source, starting at this location.Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: