wp-cli / dist-archive-command

Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file
https://developer.wordpress.org/cli/commands/dist-archive/
MIT License
47 stars 23 forks source link

Add theme version to generated archive #65

Closed kjohnson closed 2 years ago

kjohnson commented 2 years ago

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.