media-command
media-command copied to clipboard
Add reason for skipping regeneration
We get a lot of bug reports and support reports related to the thumbnail regeneration, where it often is just not clear why the regeneration is being skipped.
The command should be more verbose and add the specific reason for why it decided to skip a given thumbnail regeneration.
Also, it should come with additional --debug
output in case one wants to verify said reasons.
When wrong flag is passed, it doesn't regenerate images with error that images don't exists. In documentation it says that correct flag is --yes but error message could be improved as to avoid confusion.
wp media regenerate -y
Warning: No images found.
wp media regenerate -yes
Warning: No images found.
wp media regenerate --y
Error: Parameter errors:
unknown --y parameter
Did you mean '--yes'?
wp media regenerate --yes
Found 455 images to regenerate.
(regenerating...)
@marko-stimac This is unrelated, please open a separate issue if you want to raise that as a bug.
Oh dear... almost 3 years an still open? Is this repo still alive?