[wp-trac] [WordPress Trac] #57266: wp_suspend_cache_invalidation can be set to no Boolean value which break usage

WordPress Trac noreply at wordpress.org
Mon Dec 5 22:20:21 UTC 2022


#57266: wp_suspend_cache_invalidation can be set to no Boolean value which break
usage
--------------------------------------+------------------------------
 Reporter:  pbearne                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by pbearne):

 I wasn't sure I could do that
 I prefer trying to cast the value
 This does been that any string not "false" set the value to True

 new version uploaded

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57266#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list