WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 10 months ago

Last modified 10 months 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:

Description

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 10 months ago.

Download all attachments as: .zip

Change History (5)

johnbillion10 months ago

comment:1 johnbillion10 months ago

  • Keywords has-patch added

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

comment:2 nacin10 months ago

  • Milestone changed from Awaiting Review to 3.6

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

comment:3 nacin10 months 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.

comment:4 DrewAPicture10 months 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.