Skip to content

Remove only themes/plugins folders on --skip-content#212

Merged
schlessera merged 5 commits intomasterfrom
fix/remove-only-plugins-themes-folders
Oct 11, 2022
Merged

Remove only themes/plugins folders on --skip-content#212
schlessera merged 5 commits intomasterfrom
fix/remove-only-plugins-themes-folders

Conversation

@schlessera
Copy link
Member

Moved over from PR #156:

Pull request #59 strips the whole wp-content directory, removing languages too and raising the issue that --locale= flag is broken.

I just changed the if-statement to strip out plugins and themes separately.

No idea how to write tests for that, it is a fairly simple fix.

Closes #147.

@schlessera schlessera requested a review from a team as a code owner October 11, 2022 19:08
@schlessera schlessera added bug command:core-install Related to 'core install' command labels Oct 11, 2022
@schlessera schlessera changed the title Remove only themes/plugins folders from archive. Remove only themes/plugins folders on --skip-content Oct 11, 2022
@schlessera schlessera added this to the 2.1.5 milestone Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:core-install Related to 'core install' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--skip-content option should download WP without the default themes and plugins

2 participants