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:
nacin 2010-03-23 19:20:03 +00:00
parent 47b80515da
commit e0896f5ff4

View File

@ -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();