May 18, 2013

WordPress 2.0.1 still has annoying attribute stripping

stop button Wordpress 2.0.1 still has annoying attribute strippingWhen 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]

Share and Enjoy:
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping
  • services sprite Wordpress 2.0.1 still has annoying attribute stripping

Related posts:

  1. Solving WordPress 2.0 External Posting Errors Since upgrading to WP2.0 I had not been able to...
  2. WordPress title suffix plugin I read some research lately which seems to show that...
  3. WordPress 2 multi-blogging made easy I upgraded the site to Wordpress 2 this morning. This...

About Bruce Kroeze

Speak Your Mind

*