WordPress.org

Ready to get started?Download WordPress

Forums

File Un-Attach
attach/unattach button fix (2 posts)

  1. alx359
    Member
    Posted 2 years ago #

    In Media Library->Edit Media (i.e. media.php) the attach/unattach buttons shouldn't be appearing IMO, as there's no post/page context to refer to, and the way they seem to work now is confusing (un-attach and get a blank edit media page). These buttons should appear in the inline Media Library only (i.e. media-upload.php). Suggested fix as follows:

    file-un-attach\admin.php li ~104

    function attachment_fields($form_fields, $post){
    
    	//[alx359] added. If media.php do not create attach/unattach buttons
    	if (empty($this->tab)) return $form_fields;

    http://wordpress.org/extend/plugins/file-un-attach/

  2. Hax
    Member
    Plugin Author

    Posted 2 years ago #

    thanks for the code and feedback, I will add the code for next releae

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic