WordPress.org

Make WordPress Core

Opened 6 years ago

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

Download all attachments as: .zip

Change History (5)

@johnbillion
6 years ago

#1 @johnbillion
6 years ago

  • Keywords has-patch added

@wonderboymusic
6 years ago

#2 @wonderboymusic
6 years ago

  • Milestone changed from Awaiting Review to 3.7

whitespaces

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

Note: See TracTickets for help on using tickets.