Support » Plugin: Meta Box » [Plugin: Meta Box] Bug with plupload box

  • Hello.
    I’ve found a little bug with plupload box in version 4.1.9. When you delete an image from library, there is still a record for plupload box left in ‘wp-postmeta’ table in DB. I’dont know if you solved this already. Well, anyway there is a solution of mine:

    add_action('delete_attachment', 'image_delete_handler');
    function image_delete_handler($id){
    	global $wpdb;
    	$wpdb->query(
    		$wpdb->prepare("
    			DELETE FROM $wpdb->postmeta
    		 	WHERE meta_key = %d
    		 	AND meta_value = %s
    			",
    	        'plupload_field_name', $id
    	    )
    	);
    }

    Hope that would be useful.

    http://wordpress.org/extend/plugins/meta-box/

Viewing 2 replies - 1 through 2 (of 2 total)
  • annejan

    (@annejan)

    Is this issue fixed?

    This issue is not fixed actually. You cannot delete a thickbox image in the current release or development branches of the source.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Meta Box] Bug with plupload box’ is closed to new replies.