- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r14774 r15061 173 173 'wp-includes/gettext.php', 174 174 'wp-includes/streams.php', 175 // MU 176 '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', 175 194 // 3.0 176 195 'wp-admin/categories.php', … … 193 212 'wp-includes/js/jquery/interface.js', 194 213 'wp-includes/js/jquery/autocomplete.js', 214 'wp-includes/js/scriptaculous/prototype.js', 195 215 'wp-includes/js/tinymce/wp-tinymce.js', 196 216 'wp-content/themes/twentyten/searchform.php', … … 255 275 $required_php_version = '4.3'; 256 276 $required_mysql_version = '4.1.2'; 257 $wp_version = ' 2.9.1';277 $wp_version = '3.0'; 258 278 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 259 279 $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); … … 271 291 // Sanity check the unzipped distribution 272 292 apply_filters('update_feedback', __('Verifying the unpacked files…')); 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') ) { 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 ) { 275 303 $wp_filesystem->delete($from, true); 276 304 return new WP_Error('insane_distro', __('The update could not be unpacked') ); … … 286 314 287 315 // Copy new versions of WP files into place. 288 $result = copy_dir($from . '/wordpress', $to);316 $result = copy_dir($from . $distro, $to); 289 317 if ( is_wp_error($result) ) { 290 318 $wp_filesystem->delete($maintenance_file);
Note: See TracChangeset
for help on using the changeset viewer.