Fixes Security Vulnerability & bp_media_after_photo hook