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

  1. alx359
    Posted 5 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;


  2. Hax
    Plugin Author

    Posted 5 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

  • File Un-Attach
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic