WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11161 closed enhancement (duplicate)

delete_transient action

Reported by: donncha Owned by:
Milestone: Priority: high
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Please add a "delete_transient_" action to the function delete_transient().

function delete_transient($transient) {
        global $_wp_using_ext_object_cache, $wpdb;

        do_action( 'delete_transient_' . $transient );

In WordPress MU it's used to override the upgrade variables for update_core, plugins and themes checking.

Change History (2)

comment:1 donncha4 years ago

Oops, forgot another one. MU has the following filter in set_transient():

$value = apply_filters( 'pre_set_transient_' . $transient, $value );

Again, for the same reasoning. One of the things to sort out before merging.

comment:2 nacin4 years ago

  • Milestone 3.0 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

If this wasn't already in, I'm pretty sure it was, then it was handled in #10788.

Note: See TracTickets for help on using tickets.