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
[tags]Wordpress,Wordpress2,Wordpress2.0.1[/tags]
Related posts:
- Solving WordPress 2.0 External Posting Errors Since upgrading to WP2.0 I had not been able to...
- WordPress title suffix plugin I read some research lately which seems to show that...
- WordPress 2 multi-blogging made easy I upgraded the site to Wordpress 2 this morning. This...
Recent Comments