- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r15061 r14774 173 173 'wp-includes/gettext.php', 174 174 'wp-includes/streams.php', 175 // MU176 'wp-admin/wpmu-admin.php',177 'wp-admin/wpmu-blogs.php',178 'wp-admin/wpmu-edit.php',179 'wp-admin/wpmu-options.php',180 'wp-admin/wpmu-themes.php',181 'wp-admin/wpmu-upgrade-site.php',182 'wp-admin/wpmu-users.php',183 'wp-includes/wpmu-default-filters.php',184 'wp-includes/wpmu-functions.php',185 'wpmu-settings.php',186 'index-install.php',187 'README.txt',188 'htaccess.dist',189 'wp-admin/css/mu-rtl.css',190 'wp-admin/css/mu.css',191 'wp-admin/images/site-admin.png',192 'wp-admin/includes/mu.php',193 'wp-includes/images/wordpress-mu.png',194 175 // 3.0 195 176 'wp-admin/categories.php', … … 212 193 'wp-includes/js/jquery/interface.js', 213 194 'wp-includes/js/jquery/autocomplete.js', 214 'wp-includes/js/scriptaculous/prototype.js',215 195 'wp-includes/js/tinymce/wp-tinymce.js', 216 196 'wp-content/themes/twentyten/searchform.php', … … 275 255 $required_php_version = '4.3'; 276 256 $required_mysql_version = '4.1.2'; 277 $wp_version = ' 3.0';257 $wp_version = '2.9.1'; 278 258 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 279 259 $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); … … 291 271 // Sanity check the unzipped distribution 292 272 apply_filters('update_feedback', __('Verifying the unpacked files…')); 293 $distro = ''; 294 $roots = array( '/wordpress', '/wordpress-mu' ); 295 foreach( $roots as $root ) { 296 if ( $wp_filesystem->exists($from . $root . '/wp-settings.php') && $wp_filesystem->exists($from . $root . '/wp-admin/admin.php') && 297 $wp_filesystem->exists($from . $root . '/wp-includes/functions.php') ) { 298 $distro = $root; 299 break; 300 } 301 } 302 if ( !$distro ) { 273 if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') || 274 !$wp_filesystem->exists($from . '/wordpress/wp-includes/functions.php') ) { 303 275 $wp_filesystem->delete($from, true); 304 276 return new WP_Error('insane_distro', __('The update could not be unpacked') ); … … 314 286 315 287 // Copy new versions of WP files into place. 316 $result = copy_dir($from . $distro, $to);288 $result = copy_dir($from . '/wordpress', $to); 317 289 if ( is_wp_error($result) ) { 318 290 $wp_filesystem->delete($maintenance_file);
Note: See TracChangeset
for help on using the changeset viewer.