Make WordPress Core

Opened 3 weeks ago

Closed 3 weeks ago

#60438 closed defect (bug) (fixed)

Remove unused `WP_Scripts::get_unaliased_deps()` method

Reported by: swissspidy's profile swissspidy Owned by: swissspidy's profile swissspidy
Milestone: 6.5 Priority: normal
Severity: normal Version:
Component: Script Loader Keywords:
Focuses: Cc:

Description

The private WP_Scripts::get_unaliased_deps() method was introduced in [56033] / #12009 but it's not actually used.

This was part of the inline script implementation that was later reverted before final merge. This method was simply missed in the process.

Change History (1)

#1 @swissspidy
3 weeks ago

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

In 57533:

Script Loader: Remove unused WP_Scripts::get_unaliased_deps() method.

This private method was introduced in [56033] / #12009 but it's not actually used.
It was part of the inline script implementation which was later reverted before final merge.
The method can be safely removed because it’s private and cannot be used by extenders.

Props joemcgill.
Fixes #60438.

Note: See TracTickets for help on using tickets.