Add CDATA. fixes #1957

git-svn-id: http://svn.automattic.com/wordpress/trunk@3318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-16 03:28:05 +00:00
parent 97cd7143da
commit 708d693096
1 changed files with 4 additions and 2 deletions

View File

@ -84,6 +84,7 @@ addLoadEvent(blurry);
<?php endif; ?>
<script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
<script type="text/javascript">
//<![CDATA[
addLoadEvent( function() {
<?php switch ( $pagenow ) : case 'post.php' : ?>
var manager = new dbxManager('postmeta'); //session ID [/-_a-zA-Z0-9/]
@ -91,6 +92,7 @@ addLoadEvent(blurry);
var manager = new dbxManager('pagemeta'); //session ID [/-_a-zA-Z0-9/]
<?php break; endswitch; ?>
});
//]]>
</script>
<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
@ -122,6 +124,7 @@ input#catadd { background: #a4a4a4;
}
</style>
<script type="text/javascript">
//<![CDATA[
var ajaxCat = new sack();
var newcat;
@ -243,8 +246,6 @@ function newCatCompletion() {
}
p.parentNode.removeChild(p);
// var id = parseInt(ajaxCat.response, 10);
}
function ajaxNewCatKeyPress(e) {
@ -300,6 +301,7 @@ function myPload( str ) {
fixedExplode[count] = currentElement;
return fixedExplode;
}
//]]>
</script>
<?php endif; ?>