Cloudinary does not support 'full' WP image size
-
Hey,
Thanks for the great plugin! I have small bug report, however.
Wherever I use the ‘full’ image size in my themes and plugins, I get the following PHP notice
Notice: Undefined index: full in /../wp-content/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php on line 296The issue is that the
get_wp_sizes()function on line 253 does not take into account the ‘full’ image size (it is not returned byget_intermediate_image_sizes()).While all the images actually appear, I did not want this notice filling up my logs so I have temporarily worked it out by using the handy ‘intermediate_image_sizes_advanced’ filter
/** * Add 'full' image size to Cloudinary $sizes array */ function enollo_cloudinary_intermediate_image_sizes_advanced( $sizes ) { $sizes['full'] = array( 'width' => 9999, 'height' => 9999, 'crop' => false); } add_filter( 'intermediate_image_sizes_advanced', 'enollo_cloudinary_intermediate_image_sizes_advanced' );Would you be able to add something to this effect to the plugin itself so others do not get confused by the notice?
Thanks,
Tamara
https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/
The topic ‘Cloudinary does not support 'full' WP image size’ is closed to new replies.