Invalid Action Network Embed Code again
-
On lines 1161 and 1297 of actionnetwork.php, the plugin is only validating embed codes versions 2-4. Action Network is currently on version 6, so the regex needs updating.
Additionally, the embed is failing validation because you’re running
wp_kses_post()on the embed code before applying the regex. That sanitization alters the<script>tag or query string, so the regex never matches. The rawwp_unslash()value needs to be used for parsing/validation.These two issues lead to an “invalid embed code” error.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.