Use set_time_limit(0) in import/mt.php. see #12595
git-svn-id: https://develop.svn.wordpress.org/trunk@13807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5bcb23827d
commit
adb0bd1ff3
|
@ -240,8 +240,6 @@ class MT_Import {
|
||||||
}
|
}
|
||||||
|
|
||||||
function save_post(&$post, &$comments, &$pings) {
|
function save_post(&$post, &$comments, &$pings) {
|
||||||
// Reset the counter
|
|
||||||
set_time_limit(30);
|
|
||||||
$post = get_object_vars($post);
|
$post = get_object_vars($post);
|
||||||
$post = add_magic_quotes($post);
|
$post = add_magic_quotes($post);
|
||||||
$post = (object) $post;
|
$post = (object) $post;
|
||||||
|
@ -496,6 +494,7 @@ class MT_Import {
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
check_admin_referer('import-mt');
|
check_admin_referer('import-mt');
|
||||||
|
set_time_limit(0);
|
||||||
$result = $this->import();
|
$result = $this->import();
|
||||||
if ( is_wp_error( $result ) )
|
if ( is_wp_error( $result ) )
|
||||||
echo $result->get_error_message();
|
echo $result->get_error_message();
|
||||||
|
|
Loading…
Reference in New Issue