Image fields not editable
-
I have an issue with image fields edit buttons. They dissapear whenever an image is deleted from the media folder.
Issue description:
The issue is when you have included an image field on a post, and delete the image from the media folder, without removing it from the post first.
When you wish to edit the image-field on the post, you do not have the option to upload a new image or remove the old. This is because the post still has an empty meta value for the field.To fix it, I have added the following code to fields/image.php on line 101.
if ( isset($url) && trim($url)!==” )
{
$div_atts[‘class’] .= ‘ has-value’;
}In order to show the button to upload a new image.
This is not a long term fix, since it’ll be overwritten when the plug in is updated.
Can this be fixed any other way?
Thanks in advance.
- The topic ‘Image fields not editable’ is closed to new replies.