Skip to content

Add theme version to generated archive#65

Merged
danielbachhuber merged 3 commits intowp-cli:mainfrom
kjohnson:fix/dist-archive-theme-version-50
Sep 11, 2022
Merged

Add theme version to generated archive#65
danielbachhuber merged 3 commits intowp-cli:mainfrom
kjohnson:fix/dist-archive-theme-version-50

Conversation

@kjohnson
Copy link
Copy Markdown
Contributor

@kjohnson kjohnson commented Sep 11, 2022

Fixes #50 by parsing the theme's version from the headers via regex.

The pattern used is extracted from the get_file_data() function in core.

@kjohnson kjohnson marked this pull request as ready for review September 11, 2022 21:12
@kjohnson kjohnson requested a review from a team as a code owner September 11, 2022 21:12
@danielbachhuber danielbachhuber added this to the 3.0.0 milestone Sep 11, 2022
@danielbachhuber danielbachhuber added bug command:dist-archive Related to 'dist-archive' command labels Sep 11, 2022
@danielbachhuber danielbachhuber merged commit 6879b7f into wp-cli:main Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:dist-archive Related to 'dist-archive' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version only read from plugins, not from theme's style.css

2 participants