I have a simple fields field of type file to save custom images to a page, but if I save the pages without selecting an image it seems to still try to attach an image but failing. Expected response of
However, if I select an image, save the page and then click clear on the image and resave the page it goes back to returning an empty array. Subsequent saves without an image will reintroduce the bug.
I have a simple fields field of type file to save custom images to a page, but if I save the pages without selecting an image it seems to still try to attach an image but failing. Expected response of
$custom_bg = simple_fields_value('page_background_image', $post->ID);
would be an empty array, but instead I get this
However, if I select an image, save the page and then click clear on the image and resave the page it goes back to returning an empty array. Subsequent saves without an image will reintroduce the bug.