[wp-trac] [WordPress Trac] #63829: Sanitize return value of 'nonce_life' filters in wp_nonce_tick() to avoid DivisionByZeroError

WordPress Trac noreply at wordpress.org
Fri Aug 15 14:32:27 UTC 2025


#63829: Sanitize return value of 'nonce_life' filters in wp_nonce_tick() to avoid
DivisionByZeroError
-------------------------+------------------------------
 Reporter:  marian1      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by knutsp):

 Why should the fatal error be prevented when it's the result of a
 developer mistake? How would the developer then know there is such a
 mistake?

 IMO, if anything and actually common and plain misunderstanding, this is a
 candidate for "doing it wrong".

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


More information about the wp-trac mailing list