When Wordpress 2.0 was released, its aggressive tag attribute stripping caused me a lot of pain. For example, I couldn’t link any image at all using my favorite blogging client, Ecto. I was hoping that the 2.0.1 release would fix this problem.
Well, yes and no
It fixed some-but-not-all of the tag problems. It still strips too much for my taste. I’ve once again added several attributes back into my wp-includes/kses.php file.
The changes I’ve made are:
'div' => array ('align' => array (), 'class' => array (), 'id' => array(), 'style' => array()),
'img' => array ('alt' => array (), 'class' => array(), 'align' => array (), 'border' => array (), 'height' => array (), 'hspace' => array (), 'longdesc' => array (), 'vspace' => array (), 'src' => array (), 'title' => array (), 'width' => array ()),
'span' => array ('class' => array (), 'id' => array(), 'style' => array()),
'p' => array ('align' => array (), 'class' => array (), 'id' => array(), 'style' => array()),
'tag' => array(), 'tags' => array(),
You can download a pre-tweaked kses.php here: wp2-kses-fix.zip
Technorati Tags: Wordpress, Wordpress2, Wordpress2.0.1
















0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment