Fix jQuery issue in function
Merge branch 'master' of https://github.com/rtCamp/buddypress-media