WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

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

Download all attachments as: .zip

Change History (6)

comment:1 @ericmann4 years ago

  • Cc eric@… added

comment:2 @ericmann4 years ago

  • Keywords scripts removed

@scribu4 years ago

comment:3 @scribu4 years ago

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

comment:4 @ericmann4 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!

comment:5 @markjaquith4 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.