Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 4 years ago

#24685 closed enhancement (fixed)

Pass boolean false value through `transient_$transient` filter

Reported by: johnbillion's profile johnbillion Owned by: duck_'s profile duck_
Milestone: 3.7 Priority: normal
Severity: normal Version: 2.8
Component: Cache API Keywords: has-patch
Focuses: Cc:


From nacin's comment on #22369:

I do think the return false should go through the existing transient_$transient filter, though. When using an external backend, the false from wp_cache_get() does go through the filter, so this should as well.

Attachments (2)

24685.patch (1.0 KB) - added by johnbillion 11 years ago.
24685.diff (1.4 KB) - added by wonderboymusic 11 years ago.

Download all attachments as: .zip

Change History (6)

11 years ago

#1 @johnbillion
11 years ago

  • Keywords has-patch added

#2 @wonderboymusic
11 years ago

  • Milestone changed from Awaiting Review to 3.7


#3 @duck_
11 years ago

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

In 25075:

Pass false returned for timed out transients through transient_$transient filter.

This brings the same behaviour as external object caches to the default database

Props johnbillion. Fixes #24685.

This ticket was mentioned in Slack in #core-editor by andraganescu. View the logs.

4 years ago

Note: See TracTickets for help on using tickets.