[wp-trac] [WordPress Trac] #56293: Use 'MINUTE_IN_SECONDS' for consistency in 'update.php' file

WordPress Trac noreply at wordpress.org
Wed Jul 27 12:27:41 UTC 2022


#56293: Use 'MINUTE_IN_SECONDS' for consistency in 'update.php' file
------------------------------+-----------------------------
 Reporter:  hztyfoon          |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Administration    |    Version:
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 In the 'wp-includes/update.php' file there are multiple instances where
 variable $timeout set to plain integer 30 like:
 {{{
 $timeout = 30;
 }}}
 I think It should be like this (MINUTE_IN_SECONDS also used multiple time
 in this file) as done here in this commit #53714:

 {{{
 $timeout = MINUTE_IN_SECONDS / 2;
 }}}

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


More information about the wp-trac mailing list