/* ]]> */
/* ]]> */
A line in the file
wp-includes/post-template.php is to blame for this, which reads:
$content = str_replace(']]>', ']]>', $content);
It’s a mystery to me what this line should ever be good for at all. It is also a mystery to me why the whole thing hasn’t been implemented as a filter that you could turn off when needed. For two years already, several people have been asking for this line to be removed or realized some other way. We can only wait and hope that one far day, this will be changed in a future WordPress release.
In the meantime, there is no other choice but to simpy comment the cited line – even though I don’t appreciate solutions that require messing about with the source code. After that, the CDATA sections work fine – or at least their definition does.
Now, CDATA sections are usually being inserted for only one reason, namely for being able to use characters like
Wordpress however still converts all concerning characters inside the CDATA section in HTML entities. This is caused by the function
wpautop() which normally makes our life much easier by converting all the special characters in a post into HTML entities for us. In this special case however, we actually don’t want them to be converted! So we have to turn off the filter