Shortcode Block Security

Use when registering a shortcode with add_shortcode or a dynamic block with a render_callback, or processing shortcode / block attributes. Normalizes attributes with shortcode_atts, validates against allowlists, and escapes all rendered output for its context with esc_html, esc_attr, esc_url, or wp_kses_post. Prevents stored and reflected XSS in rendered content.

wpultimatesecurity 2fbe5b8 3 files · 12.0 KB Updated

File contents

wpultimatesecurity/WordPress-Security-Skills/tree/main/skills/shortcode-block-security commit 2fbe5b8e26

Frequently asked questions

npx skillmds@latest add wpultimatesecurity/shortcode-block-security