Skip to content

Remove only themes/plugins folders from archive.#156

Closed
ghost wants to merge 4 commits intomasterfrom
unknown repository
Closed

Remove only themes/plugins folders from archive.#156
ghost wants to merge 4 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented May 17, 2020

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.

@ghost ghost self-requested a review as a code owner May 17, 2020 09:48
@wojsmol
Copy link
Contributor

wojsmol commented May 19, 2020

@2crstn Please see failing tests.

@ghost
Copy link
Author

ghost commented May 19, 2020

Maybe the tests could be simplified.

"""
Success: WordPress downloaded.
"""
And the wp-includes directory should exist
Copy link
Contributor

Choose a reason for hiding this comment

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

Please restore this line.

"""
Success: WordPress downloaded.
"""
And the wp-includes directory should exist
Copy link
Contributor

Choose a reason for hiding this comment

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

Please restore this line.

@ghost
Copy link
Author

ghost commented May 25, 2020

Why only these two lines? There were more wp-includes checks.

@wojsmol
Copy link
Contributor

wojsmol commented May 26, 2020

@2crstn Please restore all wp-includes checks

Copy link
Contributor

@wojsmol wojsmol left a comment

Choose a reason for hiding this comment

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

LGTM

@schlessera
Copy link
Member

This couldn't be rebased, so closing in favor of #212

@schlessera schlessera closed this Oct 11, 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.

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

3 participants