From aceef65ba020e6d31b0c2d103f0e50c445ccc973 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 14 Oct 2008 16:36:43 +0000 Subject: [PATCH] Use set_time_limit() to buy some time during upgrade. see #5560 git-svn-id: http://svn.automattic.com/wordpress/trunk@9164 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 1 + wp-admin/includes/update-core.php | 2 ++ wp-admin/includes/update.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 05ecb8c4b4..0f8bd1ba13 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -441,6 +441,7 @@ function download_url( $url ) { unlink($tmpfname); return new WP_Error('http_404', trim($response['response']['message'])); } + var_dump($response); fwrite($handle, $response['body']); fclose($handle); diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index a679198ab6..cee08a5839 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -175,6 +175,8 @@ $_old_files = array( function update_core($from, $to) { global $wp_filesystem, $_old_files; + @set_time_limit( 300 ); + // Sanity check the unzipped distribution apply_filters('update_feedback', __('Verifying the unpacked files')); if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') || diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 81fe9fd7cd..fa7aa3191c 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -323,6 +323,8 @@ function wp_update_theme($theme, $feedback = '') { function wp_update_core($feedback = '') { global $wp_filesystem; + @set_time_limit( 300 ); + if ( !empty($feedback) ) add_filter('update_feedback', $feedback);