-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Describe the current, buggy behavior
I’m using wp-cli 2.4.0. I recently built a client a new theme and updated the large image size to fit their new theme. I then ran the command wp media regenerate --image_size=large --only-missing to regenerate new large thumbnails. Everything worked as planned. All new images were created, the old were removed, however none of the posts were updated with the new image size. They were all referencing the old images even though they no longer exists
Describe how other contributors can replicate this bug
Update large image size in settings > media
run command wp media regenerate --image_size=large --only-missing
Describe what you would expect as the correct outcome
The command would go through all images and regenerate the large image size to the new image size. It should delete the old images and update the posts to which those images were attached with the new image size.
Let us know what environment you are running this on
Dev, Staging, Production
genesis-jol (staging)* wp media regenerate 22633 --image_size=large --only-missing
Found 1 image to regenerate.
1/1 Regenerated "large" thumbnail for "Healthy Apple Crisp Recipe (Quick & Easy)-5" (ID 22633).
Success: Regenerated 1 of 1 images.