Skip to content
Discussion options

You must be logged in to vote

WordPress runs post content through KSES sanitization, which removes tags a user isn't allowed to publish unless they have the unfiltered_html capability. On a single site that's the admin; on multisite even admins lose it by default. Create the post as an administrator (e.g. wp post create --user=1) or your inline SVG/script gets silently stripped on save.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant