Filtering wp_head output
Hi, I’m writing a plugin that will make all WordPress-generated tags appropriate for HTML rather than XHTML, and to that end I’ve run into a brick wall with the wp_head function.
At the very least, wp_head spits out the xmlrpc link which is a self-closing singleton. While self-closing singletons are tolerated by HTML within the body, they are explicitly disallowed within the head of a document. The problem is that I can find no way of filtering the output of this line, to remove the ” /” characters.
Of course the root cause is still that WordPress writes XHTML tags, so if anyone has a better solution that addresses this, I’m all ears. =^)
Obviously anyone who uses this plugin will be using a theme they likely created or modified manually, so they could also just remove wp_head, but that’s hardly a solution, is it?
- The topic ‘Filtering wp_head output’ is closed to new replies.