Make WordPress Core


Ignore:
Timestamp:
12/13/2022 06:50:39 PM (4 years ago)
Author:
desrosj
Message:

Upgrade/Install: Remove bundled theme files from $_old_files.

Because themes are updated independently of Core updates, any deleted files from bundled themes should not be included in the $_old_files list.

Any file included in this list is deleted on update, which could cause problems for sites with a given theme active if the removed files were required in earlier versions of that theme and that theme is not updated at the same time.

Props desrosj, costdev, SergeyBiryukov.
Merges [54849] to the 6.1 branch.
Fixes #56936.

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

  • branches/6.1/src/wp-admin/includes/update-core.php

    r54837 r54966  
    1010/**
    1111 * Stores files to be deleted.
     12 *
     13 * Bundled theme files should not be included in this list.
    1214 *
    1315 * @since 2.7.0
     
    844846        'wp-includes/blocks/tag-cloud/editor-rtl.css',
    845847        'wp-includes/blocks/tag-cloud/editor-rtl.min.css',
    846         // 6.0
    847         'wp-content/themes/twentytwentytwo/assets/fonts/LICENSE.md',
    848848        // 6.1
    849         'wp-content/themes/twentytwentyone/assets/sass/05-blocks/spacer/_style.scss',
    850         'wp-content/themes/twentytwentyone/assets/sass/05-blocks/spacer',
    851849        'wp-includes/blocks/post-comments.php',
    852850        'wp-includes/blocks/post-comments/block.json',
Note: See TracChangeset for help on using the changeset viewer.