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
This commit is contained in:
parent
5ace80e7d6
commit
4e934c9e02
|
@ -2103,7 +2103,7 @@ function wp_ajax_get_revision_diffs() {
|
||||||
wp_send_json_error();
|
wp_send_json_error();
|
||||||
|
|
||||||
$return = array();
|
$return = array();
|
||||||
@set_time_limit( count( $_REQUEST['compare'] ) );
|
@set_time_limit( 0 );
|
||||||
|
|
||||||
foreach ( $_REQUEST['compare'] as $compare_key ) {
|
foreach ( $_REQUEST['compare'] as $compare_key ) {
|
||||||
list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to
|
list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to
|
||||||
|
|
Loading…
Reference in New Issue