Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#37756 new defect (bug)

Allow inline scripts on script aliases

Reported by: pcfreak30's profile pcfreak30 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.5
Component: Script Loader Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

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 (5)

#1 @swissspidy
8 years ago

  • Version changed from trunk to 4.5

#2 follow-up: @pcfreak30
8 years ago

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

#3 in reply to: ↑ 2 @netweb
8 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.

#4 @desrosj
5 years ago

  • Keywords needs-patch needs-unit-tests added
  • Milestone set to Future Release

@pcfreak30 Are you interested in creating a patch for this? Some unit tests demonstrating the issue would also be helpful.

#5 @pcfreak30
5 years ago

@desrosj this issue is so old for me that I have not dealt with it in a while and forgot about this ticket. I don't know if it's still an issue either. Another can contribute to fixing this if they like.

Thanks.

Note: See TracTickets for help on using tickets.