however the template-functions-post.php file line 57 -
$content = str_replace(']]>', ']]>', $content);
Which replaces the end comment within each script blocks!
I have tried adding the filter with a high number for the priority (so its executed last) but i take it the function that invalidates my code is called after the filters are applied.
Other than commenting out this line, is there anything i can do to stop this happening?