WordPress.org

Ready to get started?Download WordPress

Forums

Meta Box
Bug with plupload box (3 posts)

  1. mayson.rlg
    Member
    Posted 1 year ago #

    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/

  2. annejan
    Member
    Posted 1 year ago #

    Is this issue fixed?

  3. Lann
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.