-
Notifications
You must be signed in to change notification settings - Fork 58
Add automatic cleanup of old core files using WordPress $_old_files list #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+277
−11
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
41efc3a
Initial plan
Copilot baee2fa
Add support for cleaning up old files using WordPress $_old_files list
Copilot 37cfece
Enhance cleanup to use $_old_files even when checksums are available
Copilot 4760835
Update tests and documentation to reflect new cleanup behavior
Copilot 5a094a0
Address code review feedback - improve error handling and reduce dupl…
Copilot bf5a413
Remove @ error suppression operators per code review feedback
Copilot fe5a714
Use directory_separator
swissspidy 12fd04b
Path validation
swissspidy d5ffb6d
Adjust message
swissspidy 96fcab2
Refactor to reduce code duplication and add symlink handling
Copilot 038d662
Add path validation and improve security checks
Copilot 92f2049
Fix path validation logic for better security
Copilot 0d1bfb3
Optimize path validation by caching ABSPATH realpath
Copilot 6b30e73
Clean up code style - remove trailing whitespace and simplify logic
Copilot 831e197
Lint & test fixes
swissspidy 1a5cb90
Merge branch 'main' into copilot/add-delete-old-core-files
swissspidy 0064498
Add comprehensive test coverage for old files cleanup functionality
Copilot 253a873
Apply suggestions from code review
swissspidy 40c7fc5
Remove custom old_files test and improve checksums unavailable test w…
Copilot 8ab689b
Gherkin lint fix
swissspidy f4554f6
Merge branch 'main' into copilot/add-delete-old-core-files
swissspidy 29fcb9d
Update src/Core_Command.php
swissspidy deb6133
Fix merge hiccup
swissspidy 2217d6a
Merge branch 'main' into copilot/add-delete-old-core-files
swissspidy 759bdd0
Add symlink handling and optimize remove_directory with cached parameter
Copilot 7d21edb
Improve log messages for symbolic link removal
Copilot 0c04d93
Fix symlink security validation to check link path not target
Copilot 050a066
Simplify symlink validation to check path directly without resolution
Copilot 0366f61
Fix symlink validation with proper path normalization
Copilot 463a2d7
Merge branch 'main' into copilot/add-delete-old-core-files
swissspidy 71a888f
Apply suggestion from @swissspidy
swissspidy 6443609
Merge branch 'main' into copilot/add-delete-old-core-files
swissspidy d1e030f
Change order: clean up old_files first, then handle checksums
Copilot 3f4f923
Update test to include new cleanup log messages in ZIP update scenario
Copilot d030292
Update features/core-update.feature
swissspidy 17a6032
Update src/Core_Command.php
swissspidy ce9a726
Short-circuit early in remove_old_files_from_list() before expensive …
Copilot 66018df
Simplify remove_old_files_from_list by merging validation and removal…
Copilot 82a15ed
Simplify remove_directory using RecursiveDirectoryIterator
Copilot 059e826
Apply suggestion from @swissspidy
swissspidy 5eeb1af
Apply suggestions from code review
swissspidy 41c4830
Lint fix
swissspidy 60b6bb2
Update docblock examples to reflect new cleanup output messages
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.