Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14815 closed enhancement (fixed)

Add wp_dequeue_script function

Reported by: ericmann Owned by:
Milestone: 3.1 Priority: normal
Severity: trivial Version: 3.1
Component: JavaScript Keywords: has-patch commit
Focuses: Cc:


A user pointed out on the WordPress Answers Exchange that, while we support wp_enqueue_script, there's no support for a wp_dequeue_script function. Though the method calls are there in /wp-includes/class.wp-dependencies.php ... we just haven't implemented them.

We should add a wp_dequeue_script function in order to fully flesh out the API.

Attachments (1)

14815.diff (1.4 KB) - added by scribu 5 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ericmann
5 years ago

  • Cc eric@… added

#2 @ericmann
5 years ago

  • Keywords scripts removed

5 years ago

#3 @scribu
5 years ago

  • Keywords has-patch commit added; needs-patch removed
  • Milestone changed from Awaiting Review to 3.1

#4 @ericmann
5 years ago

The downside of opening a ticket on the road ... someone else submits a patch before I have time to get home and actually build it. You submitted the exact same patch I was planning to submit tonight! :-) Great work @scribu!

#5 @markjaquith
5 years ago

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

(In [15601]) wp_dequeue_script() and wp_dequeue_style(). fixes #14815. props scribu

Note: See TracTickets for help on using tickets.