Skip to content
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

Excluded individual files from the $_old_files array if their parent directories are already present. #4982

Closed
wants to merge 3 commits into from

Conversation

shohel
Copy link

@shohel shohel commented Aug 9, 2023

The implemented update ensures that when processing the $_old_files array, any individual files referenced within the array are excluded from deletion if their corresponding parent directories are already included.

Trac ticket: https://core.trac.wordpress.org/ticket/58995


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link

@pbiron pbiron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanx for the PR @shohel !!!

I think there are 2 more files that should be removed (L253-254, from WP 3.0):

    wp-includes/js/codepress/engines/khtml.js
    wp-includes/js/codepress/engines/older.js

Other than that, looks good!

@shohel
Copy link
Author

shohel commented Aug 31, 2023

@pbiron

Hey Paul, thank you for noticing it, I've removed these two files as their parent wp-includes/js/codepress directory already exists

Copy link

@pbiron pbiron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dream-encode
Copy link
Contributor

@shohel Thanks for the PR! Merged into core in https://core.trac.wordpress.org/changeset/57598.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants