Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14815 closed enhancement (fixed)

Add wp_dequeue_script function

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

Description

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 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ericmann
14 years ago

  • Cc eric@… added

#2 @ericmann
14 years ago

  • Keywords scripts removed

@scribu
14 years ago

#3 @scribu
14 years ago

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

#4 @ericmann
14 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
14 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.