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

create filter to enable use of custom directory copy code #3791

Closed

Conversation

afragen
Copy link
Member

@afragen afragen commented Dec 20, 2022

Instead of the custom conditional for testing Rollback, add a filter hook that enables the ability to use custom code in place of copy_dir() in WP_Upgrader::install_package().

Filter sets callback function to use for directory copy.

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


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.

@afragen afragen closed this Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant