WordPress 2.3.3 validation errors

I’m very found of websites that are completely XHTML compliant. I found out that a default wordpress 2.3.3 installation is not XHTML compliant. After some research i found out that a validation error occurred due to two link sections with the same id-name. After removing a link section (by leaving one blogroll category), the validation error was gone, as expected.

Of course i can fix it myself, but it’s a good thing to first look around (“Googling” :) ) and see if you are not the only one with the problem and if there might be a solution at hand. Luckily, most of the time, there *is* a solution at hand, in this case thanks to other fellow WordPress users, like Andrew:

http://www.vayanis.com/2007/08/09/wordpress-22s-link-widget-validation-errors/

I chose the durable ‘My Links’-Widget-solution to prevent future 2.3.x updates from overwriting the ‘in-php-code’-hack. Let’s hope it get’s fixed soon, because multiple blogroll links sections should not break valid XHTML IMHO.

The issue is registered as a bug with WordPress trac: http://trac.wordpress.org/ticket/4287

The source i used can be downloaded here (rename to MyLinksWidget.php and use standard plugin deployment for WordPress) : MyLinksWidget.php. I hope this can help anyone.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.