-
Couldn't load subscription status.
- Fork 87
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
I'd like to see the "update_version" field in the output from wp theme get [theme] and wp plugin get [plugin].
This would bring parity to the wp theme list and wp plugin list commands. (Rather, the default doesn't show the "update_version" field for either command, but the field can be added via the --fields parameter.)
Unlike the list subcommands, I think the default output should include the "update_version" for the get subcommands, if there's an update available.
Here's what I see today for the Astra theme:
$ wp theme get astra
+----------------+-------------------------------------------------------------+
| Field | Value |
+----------------+-------------------------------------------------------------+
| name | Astra |
| title | Astra |
| version | 4.11.8 |
| status | parent |
| parent_theme | |
| template_dir | /Users/saul/Documents/apache_sites/lifetimearts.test/wp-con |
| | tent/themes/astra |
| stylesheet_dir | /Users/saul/Documents/apache_sites/lifetimearts.test/wp-con |
| | tent/themes/astra |
| template | astra |
| stylesheet | astra |
| screenshot | screenshot.jpg |
| description | The Astra WordPress theme is lightning-fast ... |
| author | <a href="https://wpastra.com/about/?utm_source=theme_previe |
| | w&utm_medium=author_link&utm_campaign=astra_theme |
| | ">Brainstorm Force</a> |
| tags | ["custom-menu","custom-logo","entertainment","one-column"," |
| | two-columns","left-sidebar","e-commerce","right-sidebar","c |
| | ustom-colors","editor-style","featured-images","full-width- |
| | template","microformats","post-formats","rtl-language-suppo |
| | rt","theme-options","threaded-comments","translation-ready" |
| | ,"blog"] |
| theme_root | /Users/saul/Documents/apache_sites/lifetimearts.test/wp-con |
| | tent/themes |
| theme_root_uri | http://lifetimearts.test/wp-content/themes |
+----------------+-------------------------------------------------------------+Here's what I'd like to see:
$ wp theme get astra
+----------------+-------------------------------------------------------------+
| Field | Value |
+----------------+-------------------------------------------------------------+
| name | Astra |
| title | Astra |
| version | 4.11.8 |
| update_version | 4.11.9 |
| status | parent |
...
+----------------+-------------------------------------------------------------+Even if the output doesn't contain the "update_version" field by default, it would be nice if it could accept the field via the --fields parameter, which it currently cannot.