buddydev / mediapress

The Most advanced Media Gallery Plugin for BuddyPress
https://buddydev.com/mediapress/
32 stars 17 forks source link

Fix deleted wall galleries #14

Closed jazzsequence closed 8 years ago

jazzsequence commented 9 years ago

If a wall gallery is deleted, the usermeta for that gallery is never deleted with it. Tracked it down to the mpp_delete_wall_gallery_id function which saves the result of mpp_delete_{$component}_wall_gallery_id to a variable and then runs a filter on it. Except I don't think this is done correctly and, anyway, the filter is never being used. Rewrote the code to simply run the function, so the appropriate delete{component} gallery function executes and the originating mpp_delete_gallery function finishes properly.

sbrajesh commented 8 years ago

Thank you. Closing it as we have it fixed since 6 months. Sorry for overlooking it in the past.