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

Add installPlugin support for single plugin files #2033

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

When testing #2029, I wanted to be able to install a plugin from a single PHP file and have it activated as part of the same step. This seemed reasonable, so I added support.

Implementation details

Prior to this PR, if the installPlugin step received a file resource it assumed it was a Zip file. This PR generally continues that practice but makes an exception for file names ending with a .php extension. File with names ending with .php are simply written to wp-content/plugins/<filename>.

Testing Instructions (or ideally a Blueprint)

CI - this PR adds a relevant unit test

@adamziel adamziel merged commit 6c54e29 into trunk Nov 28, 2024
10 checks passed
@adamziel adamziel deleted the add/blueprint-install-plugin-from-single-php-file branch November 28, 2024 10:26
@adamziel
Copy link
Collaborator

Lovely, thank you @brandonpayton !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants