TinyMCE: minify the custom plugins, remove unneeded CSS, load in the footer
git-svn-id: http://svn.automattic.com/wordpress/trunk@10337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -54,7 +54,7 @@ function convertEntities(o) {
|
||||
<?php
|
||||
|
||||
if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
|
||||
add_action( 'admin_head', 'wp_tiny_mce' );
|
||||
add_action( 'admin_footer', 'wp_tiny_mce' );
|
||||
}
|
||||
|
||||
$hook_suffix = '';
|
||||
|
||||
@@ -190,10 +190,9 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
|
||||
{ "url" : "images/xit.gif" },
|
||||
{ "url" : "images/yes.png" },
|
||||
|
||||
<?php if ( is_file('../wp-includes/js/tinymce/tiny_mce.js') ) { ?>
|
||||
<?php if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) { ?>
|
||||
{ "url" : "../wp-includes/js/tinymce/tiny_mce.js", "src" : "../wp-includes/js/tinymce/tiny_mce.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
{ "url" : "../wp-includes/js/tinymce/langs/wp-langs-en.js", "src" : "../wp-includes/js/tinymce/langs/wp-langs-en.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
{ "url" : "../wp-includes/js/tinymce/wordpress.css", "src" : "../wp-includes/js/tinymce/wordpress.css?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
{ "url" : "../wp-includes/js/tinymce/utils/mctabs.js", "src" : "../wp-includes/js/tinymce/utils/mctabs.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
{ "url" : "../wp-includes/js/tinymce/utils/validate.js", "src" : "../wp-includes/js/tinymce/utils/validate.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
{ "url" : "../wp-includes/js/tinymce/utils/form_utils.js", "src" : "../wp-includes/js/tinymce/utils/form_utils.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||
|
||||
Reference in New Issue
Block a user