Correct way check nonce (security) using old Options API

I am developing plugin for WordPress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn’t provide the way to handle options manually. I have quite complex options structure, it consists dynamic number of items/object each object has multiple fields, and I need to save array of … Read more

Cookie nonce is invalid – Multisite

I get following messages: Applicaiton password plugin Cookie nonce is invalid iThemes Security A nonce security check failed, preventing the request from completing as expected. Please try reloading the page and trying again. …when I try to save settings in network (subdirectory multisite) admin. But I don’t get this messages if I use the settings … Read more

Coding a plugin on WordPress; when should I sanitize? [duplicate]

This question already has answers here: In Which Contexts are Plugins Responsible for Data Validation/Sanitization? (2 answers) Sanitize and data validation with apply_filters() function (1 answer) Closed 3 years ago. I am developing a custom plugin on WordPress for a client. Just a simple question: when I am using update_post_meta() and update_user_meta(), do I need … Read more

WordPress Content Security Policy and Subresource Integrity

I have tested my website at https://observatory.mozilla.org/ and I receive the following two errors: Content Security Policy -25 Content Security Policy (CSP) header not implemented Subresource Integrity -5 Subresource Integrity (SRI) not implemented, but all external scripts are loaded over HTTPS I’ve been trying to fix it all morning, but there’s no way to do … Read more