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