WordPress.org

Make WordPress Core

Changeset 8596


Ignore:
Timestamp:
08/09/2008 01:00:27 AM (12 years ago)
Author:
ryan
Message:

Remove old files. see #5560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r8595 r8596  
    11<?php
    22
     3global $_old_files;
     4
     5$_old_files = array(
     6'wp-admin/bookmarklet.php',
     7'wp-admin/css/upload.css',
     8'wp-admin/images/box-bg-left.gif',
     9'wp-admin/images/box-bg-right.gif',
     10'wp-admin/images/box-bg.gif',
     11'wp-admin/images/box-butt-left.gif',
     12'wp-admin/images/box-butt-right.gif',
     13'wp-admin/images/box-butt.gif',
     14'wp-admin/images/box-head-left.gif',
     15'wp-admin/images/box-head-right.gif',
     16'wp-admin/images/box-head.gif',
     17'wp-admin/images/heading-bg.gif',
     18'wp-admin/images/login-bkg-bottom.gif',
     19'wp-admin/images/login-bkg-tile.gif',
     20'wp-admin/images/notice.gif',
     21'wp-admin/images/toggle.gif',
     22'wp-admin/includes/upload.php',
     23'wp-admin/js/dbx-admin-key.js',
     24'wp-admin/js/link-cat.js',
     25'wp-admin/profile-update.php',
     26'wp-admin/templates.php',
     27'wp-includes/js/dbx.js',
     28'wp-includes/js/fat.js',
     29'wp-includes/js/list-manipulation.js',
     30'wp-includes/js/jquery/jquery.dimensions.min.js',
     31'wp-includes/js/tinymce/langs/en.js',
     32'wp-includes/js/tinymce/plugins/autosave/editor_plugin_src.js',
     33'wp-includes/js/tinymce/plugins/autosave/langs',
     34'wp-includes/js/tinymce/plugins/directionality/images',
     35'wp-includes/js/tinymce/plugins/directionality/langs',
     36'wp-includes/js/tinymce/plugins/inlinepopups/css',
     37'wp-includes/js/tinymce/plugins/inlinepopups/images',
     38'wp-includes/js/tinymce/plugins/inlinepopups/jscripts',
     39'wp-includes/js/tinymce/plugins/paste/images',
     40'wp-includes/js/tinymce/plugins/paste/jscripts',
     41'wp-includes/js/tinymce/plugins/paste/langs',
     42'wp-includes/js/tinymce/plugins/spellchecker/classes/HttpClient.class.php',
     43'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyGoogleSpell.class.php',
     44'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspell.class.php',
     45'wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspellShell.class.php',
     46'wp-includes/js/tinymce/plugins/spellchecker/css/spellchecker.css',
     47'wp-includes/js/tinymce/plugins/spellchecker/images',
     48'wp-includes/js/tinymce/plugins/spellchecker/langs',
     49'wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php',
     50'wp-includes/js/tinymce/plugins/wordpress/images',
     51'wp-includes/js/tinymce/plugins/wordpress/langs',
     52'wp-includes/js/tinymce/plugins/wordpress/popups.css',
     53'wp-includes/js/tinymce/plugins/wordpress/wordpress.css',
     54'wp-includes/js/tinymce/plugins/wphelp',
     55'wp-includes/js/tinymce/themes/advanced/css',
     56'wp-includes/js/tinymce/themes/advanced/images',
     57'wp-includes/js/tinymce/themes/advanced/jscripts',
     58'wp-includes/js/tinymce/themes/advanced/langs',
     59'wp-includes/js/tinymce/tiny_mce_gzip.php',
     60'wp-includes/js/wp-ajax.js',
     61'wp-admin/admin-db.php',
     62'wp-admin/cat.js',
     63'wp-admin/categories.js',
     64'wp-admin/custom-fields.js',
     65'wp-admin/dbx-admin-key.js',
     66'wp-admin/edit-comments.js',
     67'wp-admin/install-rtl.css',
     68'wp-admin/install.css',
     69'wp-admin/upgrade-schema.php',
     70'wp-admin/upload-functions.php',
     71'wp-admin/upload-rtl.css',
     72'wp-admin/upload.css',
     73'wp-admin/upload.js',
     74'wp-admin/users.js',
     75'wp-admin/widgets-rtl.css',
     76'wp-admin/widgets.css',
     77'wp-admin/xfn.js',
     78'wp-includes/js/tinymce/license.html',
     79'wp-admin/cat-js.php',
     80'wp-admin/edit-form-ajax-cat.php',
     81'wp-admin/execute-pings.php',
     82'wp-admin/import/b2.php',
     83'wp-admin/inline-uploading.php',
     84'wp-admin/link-categories.php',
     85'wp-admin/list-manipulation.js',
     86'wp-admin/list-manipulation.php',
     87'wp-includes/comment-functions.php',
     88'wp-includes/feed-functions.php',
     89'wp-includes/functions-compat.php',
     90'wp-includes/functions-formatting.php',
     91'wp-includes/functions-post.php',
     92'wp-includes/js/dbx-key.js',
     93'wp-includes/js/tinymce/plugins/autosave/langs/cs.js',
     94'wp-includes/js/tinymce/plugins/autosave/langs/sv.js',
     95'wp-includes/js/tinymce/themes/advanced/editor_template_src.js',
     96'wp-includes/links.php',
     97'wp-includes/pluggable-functions.php',
     98'wp-includes/template-functions-author.php',
     99'wp-includes/template-functions-category.php',
     100'wp-includes/template-functions-general.php',
     101'wp-includes/template-functions-links.php',
     102'wp-includes/template-functions-post.php',
     103'wp-includes/wp-l10n.php',
     104'wp-admin/import-b2.php',
     105'wp-admin/import-blogger.php',
     106'wp-admin/import-greymatter.php',
     107'wp-admin/import-livejournal.php',
     108'wp-admin/import-mt.php',
     109'wp-admin/import-rss.php',
     110'wp-admin/import-textpattern.php',
     111'wp-admin/quicktags.js',
     112'wp-admin/upload.php',
     113'wp-images',
     114'wp.php',
     115'wp-content/themes/default/attachment.php',
     116'wp-content/themes/default/images/kubrickbg.jpg',
     117'wp-content/plugins/markdown.php',
     118'wp-content/plugins/textile1.php',
     119);
     120
    3121function update_core($from, $to) {
    4     global $wp_filesystem;
     122    global $wp_filesystem, $_old_files;
    5123
    6124    // Sanity check the unzipped distribution
     
    44162    $wp_filesystem->delete($maintenance_file);
    45163
     164    // Remove old files
     165    foreach ( $_old_files as $old_file ) {
     166        $old_file = $to . $old_file;
     167        if ( !file_exists($old_file) )
     168            continue;
     169        $wp_filesystem->delete($old_file, true);
     170    }
     171
    46172    // Force refresh of update information
    47173    delete_option('update_core');
Note: See TracChangeset for help on using the changeset viewer.