Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#24583 closed enhancement (fixed)

Add $value and $expiration parameters to transient actions

Reported by: johnbillion Owned by: nacin
Milestone: 3.6 Priority: normal
Severity: normal Version: 2.8
Component: Cache API Keywords: has-patch needs-codex
Focuses: Cc:


The setted_transient and setted_site_transient actions get passed the $transient variable as a parameter.

I'm doing some debugging and could do with the $value and $expiration parameters being passed to this hook too.

Attachments (1)

24583.patch (822 bytes) - added by johnbillion 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @johnbillion
8 years ago

  • Keywords has-patch added

It'd be nice to get this into 3.6. Pretty please?

#2 @nacin
8 years ago

  • Milestone changed from Awaiting Review to 3.6

Every other option function passes $value for this action pattern.

#3 @nacin
8 years ago

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

In 24433:

Pass value and expiration to result hooks in set_transient() and set_site_transient(). props johnbillion, fixes #24583.

#4 @DrewAPicture
8 years ago

  • Keywords needs-codex added

See [24433] for new passed values to these action hooks:

  • set_transient_{$transient}
  • setted_transient
  • set_site_transient_{$transient}
  • setted_site_transient
Note: See TracTickets for help on using tickets.