Changes from branches/3.5/wp-admin/includes/update-core.php at r23324 to trunk/wp-admin/includes/update-core.php at r22227
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
- Property svn:mergeinfo deleted
r23324 r22227 536 536 'wp-includes/js/jquery/ui/jquery.effects.transfer.min.js', 537 537 'wp-includes/js/jquery/ui/jquery.effects.fold.min.js', 538 'wp-admin/options-privacy.php',539 538 ); 540 539 … … 632 631 633 632 // Import $wp_version, $required_php_version, and $required_mysql_version from the new version 634 // $wp_filesystem->wp_content_dir() returned unslashed pre-2.8 635 $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; 633 $versions_file = $wp_filesystem->wp_content_dir() . 'upgrade/version-current.php'; 636 634 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { 637 635 $wp_filesystem->delete( $from, true ); … … 694 692 } 695 693 696 // 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve.697 if ( '3.5' == $old_wp_version ) {698 if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) ) {699 // Bumping the introduced version to 3.5.1 for the affected users causes Twenty Twelve to be installed for the first time700 if ( $wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' ) )701 $_new_bundled_files[ 'themes/twentytwelve/' ] = '3.5.1';702 }703 }704 705 694 // Copy New bundled plugins & themes 706 695 // This gives us the ability to install new plugins & themes bundled with future versions of WordPress whilst avoiding the re-install upon upgrade issue. … … 712 701 $directory = ('/' == $file[ strlen($file)-1 ]); 713 702 list($type, $filename) = explode('/', $file, 2); 714 715 // Check to see if the bundled items exist before attempting to copy them716 if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) )717 continue;718 703 719 704 if ( 'plugins' == $type )
Note: See TracChangeset
for help on using the changeset viewer.