When I log in as "Admin" (role: administrator) and create a post, I successfully am able to add Tableau JS embed codes. But if I log in again as "mattb" (role: administrator) to edit the post later and republish, the JS is broken.
Environment: WP 3.1.1, firefox, IE, and chrome
Repro steps:
- Log in as "admin"
- Copy/paste js embed code
- publish
- log out, log in as "mattb" account, also with role "administrator"
- edit previous post
- publish/update
- Actual: The post is no longer an interactive chart, because the JS has pieces stripped out and it is falling back on the static image.
- Expected: because the user is an admin, the JS shouldn't be stripped.
I'm making an assumption that the role even matters in this situation. It would be great to have some insight on this!
Here is the code we're trying to use:
[Code moderated as per the Forum Rules. Please use the pastebin]
Thanks so much for your help.