[6.0] Update deleted files and folders in script.php 2025-05-11 #45462
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.
Pull Request for Issue # .
Summary of Changes
This pull request (PR) updates the lists of files and folders to be deleted on update in script.php to the latest changes in the 6.0-dev branch since the last PR of this kind for that branch, which was #45038 . In details these changes are:
In addition, it adds exceptions for the files and folders which belong to the Joomla 5 Backward Compatibility plugin to the deleted_file_check.php script so that these folders will not be deleted by the "deleteUnexistingFiles" method in script.php, as these folders will already be deleted by the "uninstallExtensions" method in script.php.
Finally, it adds exceptions for the "administrator/language/en-GB/guidedtours.joomla_whatsnew_5_4.ini" and "administrator/language/en-GB/guidedtours.joomla_whatsnew_5_4_steps.ini" files to the deleted_file_check.php script, as we do not want to deletedf these files on update, see also PR #45512 .
Testing Instructions
Code review, or if you want to do a real test:
Update a recent 5.4-dev nightly build to the latest 6.0-dev nightly build to get the actual result, and update a recent 5.4-dev nightly build to the patched package created by Drone for this PR to get the expected result.
Actual result BEFORE applying this Pull Request
After an update from a recent 5.4-dev nightly build to the latest 6.0-dev nightly build, the files and the folder added by this PR to the lists in script.php are still present.
Expected result AFTER applying this Pull Request
After an update from a recent 5.4-dev nightly build to the patched package created by Drone for this PR, the files and the folder added by this PR to the lists in script.php have been deleted.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed