Describe how other contributors can replicate this bug
Scenario: Wrong license information is displayed for the theme
Given an empty foo-theme directory
And a foo-theme/style.css file:
"""
/*
Theme Name: Foo Theme
*/
"""
When I run `wp i18n make-pot foo-theme foo-theme.pot`
Then the foo-theme.pot file should contain:
"""
# This file is distributed under the .
"""
Describe what you would expect as the correct outcome
To see the This file is distributed under the same license as the X theme.
Bug Report
Describe the current, buggy behavior
If in a Theme Header (
style.css
) theLicense
is not added, when I generate the POT file, I see theThis file is distributed under the .
https://github.com/wp-cli/i18n-command/blob/e29d18189b4291eca9d06b7da1e85d4736d92c5a/src/MakePotCommand.php#L907
Describe how other contributors can replicate this bug
Describe what you would expect as the correct outcome
To see the
This file is distributed under the same license as the X theme.
https://github.com/wp-cli/i18n-command/blob/e29d18189b4291eca9d06b7da1e85d4736d92c5a/src/MakePotCommand.php#L915
Let us know what environment you are running this on
Provide additional context/Screenshots
There was PR that fixed this for the plugins https://github.com/wp-cli/i18n-command/pull/199