WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 3 months ago

#47324 closed defect (bug) (fixed)

Remove 'jquery' as a script dependency for wp-sanitize.js

Reported by: sstoqnov Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Script Loader Keywords: has-patch commit
Focuses: Cc:
PR Number:

Description

Currently wp-sanitize.js uses jquery as dependency, which is not needed, since the content of the wp-sanitize is plain javascript.

Attachments (1)

47324.diff (570 bytes) - added by sstoqnov 5 months ago.

Download all attachments as: .zip

Change History (6)

@sstoqnov
5 months ago

#1 @sstoqnov
5 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
5 months ago

  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @adamsilverstein
4 months ago

  • Keywords commit added

Looks good!

#4 @SergeyBiryukov
3 months ago

Introduced in [41061].

#5 @SergeyBiryukov
3 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 45593:

Script Loader: Remove unnecessary jquery dependency for wp-sanitize.js.

The file is written in plain JavaScript.

Props sstoqnov.
Fixes #47324.

Note: See TracTickets for help on using tickets.