Hide media files for non-logged-in users in WordPress – gist.github.com/matthiaspabst/…

Hide media files for non-logged-in users in WordPress – gist.github.com/matthiaspabst/…