Ensure translations are loaded properly in TinyMCE when using the compressed version

git-svn-id: http://svn.automattic.com/wordpress/trunk@10384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-20 20:31:31 +00:00
parent 38ab20699d
commit ab30688c26
3 changed files with 9 additions and 12 deletions

View File

@ -1316,20 +1316,19 @@ tinyMCEPreInit = {
</script>
<?php
if ( $concatenate_scripts ) {
echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&amp;ver=$ver'></script>";
} else {
echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?ver=$ver'></script>";
if ( $concatenate_scripts )
echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&ver=$ver'></script>\n";
else
echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?ver=$ver'></script>\n";
if ( 'en' != $language && isset($lang) )
echo "<script type='text/javascript'>\n$lang\n</script>";
else
echo "<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js?ver=$ver'></script>";
}
if ( 'en' != $language && isset($lang) )
echo "<script type='text/javascript'>\n$lang\n</script>\n";
else
echo "<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js?ver=$ver'></script>\n";
?>
<script type="text/javascript">
<?php if ( $ext_plugins ) echo $ext_plugins; ?>
<?php if ( $ext_plugins ) echo "$ext_plugins\n"; ?>
<?php if ( $concatenate_scripts ) { ?>
tinyMCEPreInit.go();
<?php } else { ?>

File diff suppressed because one or more lines are too long