{"issue":{"created_at":"2011-12-13T14:32:28Z","state":"open","updated_at":"2011-12-13T22:03:03Z","comments":4,"user":{"gravatar_id":"44c843874b0883fd6970a3f788038769","id":1199618,"url":"https://api.github.com/users/alexbwfl","login":"alexbwfl","avatar_url":"https://secure.gravatar.com/avatar/44c843874b0883fd6970a3f788038769?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"When deleting an image in metabox and updating a post - the image is still there. \r\nHere is the code I use \r\nThank you very much! \r\n\r\n<pre>   \r\nadd_filter( 'cmb_meta_boxes', 'be_sample_metaboxes1' );\r\nfunction be_sample_metaboxes1( $meta_boxes1 ) {\r\n\t$meta_boxes1[] = array(\r\n\t    'id' => 'test_metabox1',\r\n\t    'title' => 'Business Logo',\r\n\t    'pages' => array('post', 'campaign'), // post type\r\n\t\t'context' => 'normal',\r\n\t\t'priority' => 'high',\r\n\t\t'show_names' => true, // Show field names on the left\r\n\t    'fields' => array(\r\n\t        \r\n\t        array(\r\n\t\t        'name' => 'Logo',\r\n\t\t        'desc' => 'Upload Business Logo.',\r\n\t\t        'id' => $prefix . 'feat_business_logo',\r\n\t\t        'type' => 'file'\r\n\t\t    )\r\n\t       \r\n\t    )\r\n\t);\r\n\t\r\n\treturn $meta_boxes1;\r\n}\r\nadd_action('init','be_initialize_cmb_meta_boxes1',9999);\r\nfunction be_initialize_cmb_meta_boxes1() {\r\n    if (!class_exists('cmb_Meta_Box')) {\r\n        require_once('init.php');\r\n    }}  \r\n</pre>","assignee":null,"id":2537089,"labels":[],"number":54,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Can't delete image file","html_url":"https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/issues/54","closed_at":null,"url":"https://api.github.com/repos/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/issues/54","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T22:03:03Z","updated_at":"2011-12-13T22:03:03Z","user":{"gravatar_id":"e341eca9e1a85dcae7127044301b4363","id":630686,"url":"https://api.github.com/users/jaredatch","login":"jaredatch","avatar_url":"https://secure.gravatar.com/avatar/e341eca9e1a85dcae7127044301b4363?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Confirming @stompweb's findings. Just tested it and it works.\r\n\r\nAre you talking about the image attachment doesn't get removed from the post/media? In which case it has always been like that.","id":3131054,"url":"https://api.github.com/repos/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/issues/comments/3131054"}}