mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
/**
|
||||
* Stores files to be deleted.
|
||||
*
|
||||
* Bundled theme files should not be included in this list.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @global array $_old_files
|
||||
@@ -843,11 +845,7 @@ $_old_files = array(
|
||||
'wp-includes/blocks/tag-cloud/editor.min.css',
|
||||
'wp-includes/blocks/tag-cloud/editor-rtl.css',
|
||||
'wp-includes/blocks/tag-cloud/editor-rtl.min.css',
|
||||
// 6.0
|
||||
'wp-content/themes/twentytwentytwo/assets/fonts/LICENSE.md',
|
||||
// 6.1
|
||||
'wp-content/themes/twentytwentyone/assets/sass/05-blocks/spacer/_style.scss',
|
||||
'wp-content/themes/twentytwentyone/assets/sass/05-blocks/spacer',
|
||||
'wp-includes/blocks/post-comments.php',
|
||||
'wp-includes/blocks/post-comments/block.json',
|
||||
'wp-includes/blocks/post-comments/editor.css',
|
||||
|
||||
Reference in New Issue
Block a user