Nonce check

wp_nonce_url was being used, but due to callback incompatibility with WP 4.0, WP3.9's nonce code was put in place. An additional funciton was brought over to use the now-custom nonces, and replace the call to WP Core's function.