You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a feature to allow users to edit their comments (and attachments) from the frontend. I'm using save_attachment() to handle additional attachments when a user edits and updates their comments. However, this method seems to replace any attachments that were previously associated with the comment.
I have patched this method in my local environment so that it accepts an array of previously associated attachment ids. Then, I'm merging those with any newly uploaded attachments before the method calls assign_attachment().
If I'm overlooking a method that I could use instead, I would appreciate any advice. Otherwise, would it be possible to add this type of support to the plugin?
The text was updated successfully, but these errors were encountered:
I'm working on a feature to allow users to edit their comments (and attachments) from the frontend. I'm using save_attachment() to handle additional attachments when a user edits and updates their comments. However, this method seems to replace any attachments that were previously associated with the comment.
I have patched this method in my local environment so that it accepts an array of previously associated attachment ids. Then, I'm merging those with any newly uploaded attachments before the method calls assign_attachment().
If I'm overlooking a method that I could use instead, I would appreciate any advice. Otherwise, would it be possible to add this type of support to the plugin?
The text was updated successfully, but these errors were encountered: