From 4e934c9e0299c341b4f566b18de99942c68489df Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Mon, 15 Jul 2013 22:53:48 +0000 Subject: [PATCH] No PHP time limit when generating diffs. Fixes #24757. Props nacin. git-svn-id: http://core.svn.wordpress.org/trunk@24707 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ajax-actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 0bfc988b5a..ede374db2d 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -2103,7 +2103,7 @@ function wp_ajax_get_revision_diffs() { wp_send_json_error(); $return = array(); - @set_time_limit( count( $_REQUEST['compare'] ) ); + @set_time_limit( 0 ); foreach ( $_REQUEST['compare'] as $compare_key ) { list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to