Security
A checklist for developers
- I print with
ugly_show(), or I escape whatugly_get()gives me. - I never put a raw value inside
<script>,style=""or an attribute without escaping for that place. - My own forms use a nonce and a capability check.
ugly_param_text()reads a value safely; it does not replace them. - I did not store a secret in a field.
- I set
ugly_fields_capabilityandugly_options_capabilityto the narrowest role that works. - I run
wp ugly-fields checkPro (or Check the JSON files) before a deploy. - I read what an imported file brings before I press Bring in what is ticked.
- Behind a proxy,
UGLY_FIELDS_PROXY_HEADERis set.
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?