What happens when I extend 'valid elements' for the TinyMCE to, for example, allow <script>.
How does this effect posting comments since some comment areas have basic TinyMCE functionalities. Will visitors be able to use <script> as well?
What happens when I extend 'valid elements' for the TinyMCE to, for example, allow <script>.
How does this effect posting comments since some comment areas have basic TinyMCE functionalities. Will visitors be able to use <script> as well?
I'd not recommend it, or you'll be back within a few months posting "My site got hacked!"...
Potentially people could be doing...
<script type="text/javascript" src="http://www.mydodgysite.com/somedodgyscript.js"></script>
What do you need that can't currently be done?
Hi t31os_, thanks.
I am aware of the security risk. Therefore I need to know if WP treats (filters) comments made by guests differently than posting a post as admin.
As an admin I need to add some <script> elements in the pages and posts but guests should absolutely not be able to use this element when posting comments.
Could you highlight me on this issue t31os_? :)
Kana
I don't know in total honesty...
I don't write the WP code after all (and there's lots)... :)
What exactly do you need to add, there may be an alternative.
[mod edit] No further response from original poster, closing thread.
This topic has been closed to new replies.