Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

Wordpress 2.0.1 still has annoying attribute stripping

February 3rd, 2006 · No Comments

stop the presses 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: , ,

Tags: Wordpress

Bookmark this article

del.icio.us:Wordpress 2.0.1 still has annoying attribute stripping digg:Wordpress 2.0.1 still has annoying attribute stripping spurl:Wordpress 2.0.1 still has annoying attribute stripping wists:Wordpress 2.0.1 still has annoying attribute stripping simpy:Wordpress 2.0.1 still has annoying attribute stripping newsvine:Wordpress 2.0.1 still has annoying attribute stripping blinklist:Wordpress 2.0.1 still has annoying attribute stripping furl:Wordpress 2.0.1 still has annoying attribute stripping reddit:Wordpress 2.0.1 still has annoying attribute stripping fark:Wordpress 2.0.1 still has annoying attribute stripping blogmarks:Wordpress 2.0.1 still has annoying attribute stripping Y!:Wordpress 2.0.1 still has annoying attribute stripping smarking:Wordpress 2.0.1 still has annoying attribute stripping magnolia:Wordpress 2.0.1 still has annoying attribute stripping segnalo:Wordpress 2.0.1 still has annoying attribute stripping gifttagging:Wordpress 2.0.1 still has annoying attribute stripping

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment