Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

Security

A checklist for developers

1 minute to read Updated 1 week ago

  • I print with ugly_show(), or I escape what ugly_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_capability and ugly_options_capability to the narrowest role that works.
  • I run wp ugly-fields check Pro (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_HEADER is set.

Did this article answer your question?