Make WordPress Core

Changeset 54849


Ignore:
Timestamp:
11/16/2022 03:41:03 PM (16 months 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.
Fixes #56936.

File:
1 edited

Legend:

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

    r54836 r54849  
    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.