Cast image sizes to array before looping
|Reported by:||griffinjt||Owned by:|
If someone doesn't filter the image_size_names_choose filter correctly, or uses some helper function like __return_false if they don't want to display any image sizes, a warning is thrown.
The $sizes var should be cast to an array before looping to avoid this warning.
Change History (18)
- Keywords close added