Skip to content

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
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants