Use set_time_limit() to buy some time during upgrade. see #5560
git-svn-id: https://develop.svn.wordpress.org/trunk@9164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
052415b790
commit
5b794466f4
@ -441,6 +441,7 @@ function download_url( $url ) {
|
|||||||
unlink($tmpfname);
|
unlink($tmpfname);
|
||||||
return new WP_Error('http_404', trim($response['response']['message']));
|
return new WP_Error('http_404', trim($response['response']['message']));
|
||||||
}
|
}
|
||||||
|
var_dump($response);
|
||||||
fwrite($handle, $response['body']);
|
fwrite($handle, $response['body']);
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
|
|
||||||
|
@ -175,6 +175,8 @@ $_old_files = array(
|
|||||||
function update_core($from, $to) {
|
function update_core($from, $to) {
|
||||||
global $wp_filesystem, $_old_files;
|
global $wp_filesystem, $_old_files;
|
||||||
|
|
||||||
|
@set_time_limit( 300 );
|
||||||
|
|
||||||
// Sanity check the unzipped distribution
|
// Sanity check the unzipped distribution
|
||||||
apply_filters('update_feedback', __('Verifying the unpacked files'));
|
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') ||
|
if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') ||
|
||||||
|
@ -323,6 +323,8 @@ function wp_update_theme($theme, $feedback = '') {
|
|||||||
function wp_update_core($feedback = '') {
|
function wp_update_core($feedback = '') {
|
||||||
global $wp_filesystem;
|
global $wp_filesystem;
|
||||||
|
|
||||||
|
@set_time_limit( 300 );
|
||||||
|
|
||||||
if ( !empty($feedback) )
|
if ( !empty($feedback) )
|
||||||
add_filter('update_feedback', $feedback);
|
add_filter('update_feedback', $feedback);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user