Changeset 9085
- Timestamp:
- 10/05/08 05:45:34 (2 months ago)
- Files:
-
- trunk/wp-admin/includes/update-core.php (modified) (2 diffs)
- trunk/wp-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/update-core.php
r9053 r9085 200 200 } 201 201 202 // Might have to do upgrade in a separate step.202 // Upgrade DB with separate request 203 203 apply_filters('update_feedback', __('Upgrading database')); 204 204 $db_upgrade_url = admin_url('upgrade.php?step=upgrade_db'); 205 205 wp_remote_post($db_upgrade_url, array('timeout' => 60)); 206 207 // Remove working directory208 $wp_filesystem->delete($from, true);209 210 // Remove maintenance file, we're done.211 $wp_filesystem->delete($maintenance_file);212 206 213 207 // Remove old files … … 219 213 } 220 214 215 // Remove working directory 216 $wp_filesystem->delete($from, true); 217 221 218 // Force refresh of update information 222 219 delete_option('update_core'); 220 221 // Remove maintenance file, we're done. 222 $wp_filesystem->delete($maintenance_file); 223 223 } 224 224 trunk/wp-settings.php
r8772 r9085 108 108 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down 109 109 110 if ( file_exists(ABSPATH . '.maintenance') ) {110 if ( file_exists(ABSPATH . '.maintenance') && !defined('WP_INSTALLING') ) { 111 111 if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) { 112 112 require_once( WP_CONTENT_DIR . '/maintenance.php' ); … … 446 446 } 447 447 448 if ( get_option('active_plugins') ) {448 if ( get_option('active_plugins') && !defined('WP_INSTALLING') ) { 449 449 $current_plugins = get_option('active_plugins'); 450 450 if ( is_array($current_plugins) ) {
