Closed helgatheviking closed 7 months ago
Thanks a lot for your report.
With your provided command I don't see how this would be possible, unless something weird is going on with parsing the command line arguments.
Does this also happen when you just run wp --allow-root i18n make-pot .
?
Is your wc-mnm-quickview
code perhaps public somewhere so I could try to reproduce this myself?
Ok, I am fairly certain the problem is that I am trying to add some headers but struggling with the JSON format. So this isn't a bug, but it would be handy to add an example to the readme.
'--headers=[\"Report-Msgid-Bugs-To: https://somesite.com/my-account/tickets/\"]'
Here‘s an example from the tests:
wp i18n make-pot wp-content/plugins/hello-world wp-content/plugins/hello-world/languages/hello-world.pot --headers='{"Report-Msgid-Bugs-To":"https://github.com/hello-world/hello-world/"}'
Any PRs updating the examples in the PHP code are of course welcome.
Bug Report
Describe the current, buggy behavior
Missing strings when generating .pot file. Seeing a notice about a PHP Warning.
Describe how other contributors can replicate this bug
and the output in the command line. the .pot file is missing strings not in the main plugin file.
Describe what you would expect as the correct outcome
A clear and concise description of what you expected to happen (or code).
Let us know what environment you are running this on
Provide a possible solution
If you happen to have a suggestion on how to fix this bug, please tell us in here.
Just leave this section out if you don't know how to fix it.
Provide additional context/Screenshots