Closed sukezane closed 4 years ago
Hey @sukezane thanks for this issue, and apologies for the delayed response. Let me take a deeper look at this and get back to you!
@sukezane The plugin has now been updated with a fix!
Thanks @junaidbhura ! But I think this issue is not fixed. Image Size dropdown lists' option value still has same image sources after activated newer version plugin.
@junaidbhura
When I added __return_false
to cloudinary_filter_image_downsize
filter on my functions.php
, it seems to be worked.
So I think this problem is occurred on filter_image_downsize
function on class-frontend.php.
In addition, when I looked into editor, I found image block's image sizes are fetched from WP REST API on /wp/v2/media/
endpoint. Since this endpoint used on editor, it might fix if this function is triggered only on actual post.
@sukezane Thanks for letting me know. I've created a new branch with a fix: https://github.com/junaidbhura/auto-cloudinary/tree/editor-sizes-fix
Can you try this and let me know if it fixes the issue?
@junaidbhura Thanks! It fixed.
Thanks for confirming @sukezane ! I'll do a plugin release soon!
Describe the bug Cannot select image size on Image block after activated Auto Cloudinary plugin.
To reproduce
Expected behavior Image size will change and updated image size on actual post. On Image Size dropdown list, all option value has different sources by each sizes.
Actual behavior Image size will not change. On Image Size dropdown list, all option value has same sources.
Additional context