Attachments Plugin: Bug on simultaneous add & delete
-
Hi there,
Jonathan, if you read this: I really appreciate the amount of heavy lifting you’ve done on integrating the media library into a custom post field. Attachments is a fantastic plugin and a pleasure to use.
Unfortunately, I’ve run into an issue when a user adds & deletes attachments simultaneously.
My setup:
- WP 3.4.1
- TwentyEleven theme
- No other plugins enabled
- Attachments enabled for core posts only
Test case / Steps to reproduce:
- Add three attachments to a new post.
- Save post.
- Delete the middle attachment.
- Add a new attachment. It will be appended to the end of the list.
- Save post.
Result: the attachment that precedes the newly attached one has been deleted as well.
I did some research and think this may have to do with the reindexing that the Attachments javascript file does on delete, but I wasn’t quickly able to come up with a patch. Any insight or direction around a fix I can implement quickly would be most appreciated, as I’m using this on a live client site. Thanks so much!
- The topic ‘Attachments Plugin: Bug on simultaneous add & delete’ is closed to new replies.