wp/wp-admin/includes/ajax-actions.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- a/wp/wp-admin/includes/ajax-actions.php	Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-admin/includes/ajax-actions.php	Fri Sep 05 18:52:52 2025 +0200
@@ -3556,8 +3556,9 @@
 
 	$return = array();
 
+	// Increase the script timeout limit to allow ample time for diff UI setup.
 	if ( function_exists( 'set_time_limit' ) ) {
-		set_time_limit( 0 );
+		set_time_limit( 5 * MINUTE_IN_SECONDS );
 	}
 
 	foreach ( $_REQUEST['compare'] as $compare_key ) {