[wp-trac] [WordPress Trac] #57659: Check the function set_time_limit() exist before calling

WordPress Trac noreply at wordpress.org
Sat Feb 11 12:40:26 UTC 2023


#57659: Check the function set_time_limit() exist before calling
--------------------------+---------------------
 Reporter:  mujuonly      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.2
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):

 * component:  General => Mail
 * milestone:  Awaiting Review => 6.2


Comment:

 Yeah, it appears to be used for the "Post via email" functionality.

 On second thought, I don't see any downsides to adding a check for
 `set_time_limit()` in this file too, so might as well do it for
 consistency with the rest of core.

 Minor nitpick: since the file does not follow WordPress coding standards,
 it would be more internally consistent here to use double quotes and avoid
 spaces between brackets. This can be adjusted on commit.

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


More information about the wp-trac mailing list