Make WordPress Core

Ticket #49291: 49291.diff

File 49291.diff, 1.0 KB (added by lovesoni1999, 16 months ago)

Code issues with set_time_limit fix

  • src/wp-admin/includes/ajax-actions.php

    diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
    index 75d7a61000..e7619f2a1b 100644
    a b function wp_ajax_get_revision_diffs() { 
    35583558
    35593559        // Removes the script timeout limit by setting it to 0 allowing ample time for diff UI setup.
    35603560        if ( function_exists( 'set_time_limit' ) ) {
    3561                 set_time_limit( 0 );
     3561                set_time_limit( 120 );
    35623562        }
    35633563
    35643564        foreach ( $_REQUEST['compare'] as $compare_key ) {
  • src/wp-includes/class-pop3.php

    diff --git a/src/wp-includes/class-pop3.php b/src/wp-includes/class-pop3.php
    index b4eab75044..50b43dc3b5 100644
    a b class POP3 { 
    4747        /**
    4848         * PHP5 constructor.
    4949         */
    50     function __construct ( $server = '', $timeout = '' ) {
     50    function __construct ( $server = '', $timeout = 120 ) {
    5151        settype($this->BUFFER,"integer");
    5252        if( !empty($server) ) {
    5353            // Do not allow programs to alter MAILSERVER