Forum Subject: TIPS for kses library' bug.
Posted on:
06/05/10 08:49am
By:
ivy
http://project.geeklog.net/tracking/view.php?id=861
[*1]
( admin_html include p - style )
Text Formatted Code
<p style="color:red">test</p>
(by html filter)->
Text Formatted Code
<p style="red">test</p>
This is a bug caused by the kses library.
reported:
Kses should apply bad-protocol check only to URI typed attributes
http://core.trac.wordpress.org/ticket/5917
[*2]
Now, hiroron reported TIPS for the bug.
add 'color' 'font-size',... to allowed_protocols of configuration.
i.e.
array ('http', 'https', 'ftp', 'color', 'font-size',... )
Then 'color:' 'font-size:' ... will not disappear.