mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-03 22:21:35 +01:00
Use set_time_limit(0) in import/mt.php. see #12595
git-svn-id: http://svn.automattic.com/wordpress/trunk@13807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47b80515da
commit
e0896f5ff4
@ -240,8 +240,6 @@ class MT_Import {
|
||||
}
|
||||
|
||||
function save_post(&$post, &$comments, &$pings) {
|
||||
// Reset the counter
|
||||
set_time_limit(30);
|
||||
$post = get_object_vars($post);
|
||||
$post = add_magic_quotes($post);
|
||||
$post = (object) $post;
|
||||
@ -496,6 +494,7 @@ class MT_Import {
|
||||
break;
|
||||
case 2:
|
||||
check_admin_referer('import-mt');
|
||||
set_time_limit(0);
|
||||
$result = $this->import();
|
||||
if ( is_wp_error( $result ) )
|
||||
echo $result->get_error_message();
|
||||
|
Loading…
Reference in New Issue
Block a user