Classic Theme Security Standards

Write or audit secure modern classic PHP WordPress theme code for WP 7.1. Covers template output escaping, `esc_html`, `esc_attr`, `esc_url`, `wp_kses_post`, `wp_json_encode`, translation escaping, unslashing plus sanitizing input, validation, nonces and capability checks for theme forms, safe `template_include`/`get_template_part`, enqueued assets instead of inline tags, prepared database queries, WPCS naming/filenames, namespacing/prefixing, no shorthand PHP tags, and no closing PHP tag. Use when reviewing `functions.php`, `header.php`, `page.php`, `404.php`, template parts, search/comment forms, or any classic theme code touching request data or dynamic output.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/theme-development/classic-theme-security-standards commit 9ef10ce4ca

Frequently asked questions

npx skillmds@latest add lonsdale201/classic-theme-security-standards