[wp-trac] [WordPress Trac] #58380: Setting time limit for updates doesn't always work.

WordPress Trac noreply at wordpress.org
Tue Nov 14 20:01:55 UTC 2023


#58380: Setting time limit for updates doesn't always work.
-------------------------------------------------+-------------------------
 Reporter:  NekoJonez                            |       Owner:  pbiron
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.5
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-dev-note 2nd-opinion needs-    |     Focuses:
  patch                                          |
-------------------------------------------------+-------------------------

Comment (by jorbin):

 I think that if we are going to have a wrapper around each
 `set_time_limit`, it would be best to have a function like
 `wp_set_time_limit` that could do that and have the suppression.  Maybe
 something like


 {{{#!php
 <?php
 function wp_set_time_limit( $seconds ){
  if ( WP_DEBUG ) {
   return set_time_limit( $seconds);
  } else {
   return @set_time_limit( $seconds);
  }
 }
 }}}

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


More information about the wp-trac mailing list