WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 5 months ago

#24685 closed enhancement (fixed)

Pass boolean false value through `transient_$transient` filter

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

Description

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 8 years ago.
24685.diff (1.4 KB) - added by wonderboymusic 7 years ago.

Download all attachments as: .zip

Change History (6)

@johnbillion
8 years ago

#1 @johnbillion
8 years ago

  • Keywords has-patch added

@wonderboymusic
7 years ago

#2 @wonderboymusic
7 years ago

  • Milestone changed from Awaiting Review to 3.7

whitespaces

#3 @duck_
7 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
backend.

Props johnbillion. Fixes #24685.

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


5 months ago

Note: See TracTickets for help on using tickets.