Paperclip Attachment

Making WordPress link to PDF files instead of the attachment page.

A client was having what they called a major UX error.  When someone found a pdf on their site and clicked the thumbnail, they would first be sent to the attachment page that had the full thumbnail and a link to the PDF.  They wanted the thumbnail url to go straight to the PDFs.  This was the simplest solution I could think of to make it site wide.