Add cap check to edd_generate_pdf() and reduce complexity of nonce check
Merge branch 'master' of github.com:easydigitaldownloads/Easy-Digital-Downloads