Update app/main/BuddyPressMedia.php