Make WordPress Core

Opened 3 years ago

Last modified 5 months ago

#37756 new defect (bug)

Allow inline scripts on script aliases

Reported by: pcfreak30 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5
Component: Script Loader Keywords:
Focuses: Cc:
PR Number:


It appears if add_inline_script is called on jquery then it gets ignored, and requires to use jquery-core

The same may apply to styles but not tested. Inline scripts should work on both the main script and the aliases.

Change History (3)

#1 @swissspidy
3 years ago

  • Version changed from trunk to 4.5

#2 follow-up: @pcfreak30
3 years ago

@swissspidy why is this set to an older WP version?

#3 in reply to: ↑ 2 @netweb
3 years ago

Replying to pcfreak30:

@swissspidy why is this set to an older WP version?

Via https://make.wordpress.org/core/handbook/tutorials/trac/opening-a-ticket/#create-a-new-ticket

  1. Version: The version of WordPress being used. Ideally, this would be the earliest affected or applicable version.
Note: See TracTickets for help on using tickets.