Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#60016 new defect (bug)

Fixed wp_suspend_cache_invalidation to always return bool/empty

Reported by: pbearne Owned by:
Priority: normal Milestone: Awaiting Review
Component: Build/Test Tools Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses:

Description (last modified by pbearne)

this function can be passed a random string
where the Gobal value set by is used we check if it is not empty
the doc say to set a bool but is allows you set any value eg 'false' which on empty

So I have added a cast to make sure the value set is bool

see pre fix tests
https://core.trac.wordpress.org/ticket/60015

Change History (2)

This ticket was mentioned in ​PR #5728 on ​WordPress/wordpress-develop by ​@pbearne.


3 years ago
#1

  • Keywords has-patch has-unit-tests added

#2 @pbearne
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.