Skip to content

Commit

Permalink
Code issues with set_time_limit
Browse files Browse the repository at this point in the history
Code issues with set_time_limit for ticket : 49291
  • Loading branch information
lovesoni1999 committed Oct 24, 2024
1 parent c374a1b commit adfe615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3558,7 +3558,7 @@ function wp_ajax_get_revision_diffs() {

// Removes the script timeout limit by setting it to 0 allowing ample time for diff UI setup.
if ( function_exists( 'set_time_limit' ) ) {
set_time_limit( 0 );
set_time_limit( 120 );
}

foreach ( $_REQUEST['compare'] as $compare_key ) {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class POP3 {
/**
* PHP5 constructor.
*/
function __construct ( $server = '', $timeout = '' ) {
function __construct ( $server = '', $timeout = 120 ) {
settype($this->BUFFER,"integer");
if( !empty($server) ) {
// Do not allow programs to alter MAILSERVER
Expand Down

0 comments on commit adfe615

Please sign in to comment.