[wp-trac] [WordPress Trac] #60016: Fixed wp_suspend_cache_invalidation to always return bool/empty

WordPress Trac noreply at wordpress.org
Tue Dec 5 22:55:41 UTC 2023


#60016: Fixed wp_suspend_cache_invalidation to always return bool/empty
------------------------------+-----------------------------
 Reporter:  pbearne           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 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 am add  a cast to make the value set is bool

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60016>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list