From 3cc307471c80fec6e5ef8315e574a14eb5ea512d Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 9 Jan 2009 13:05:16 +0000 Subject: [PATCH] TinyMCE: don't load unneeded CSS (custom styles have moved to /themes/advanced/skins/wp_theme) git-svn-id: http://svn.automattic.com/wordpress/trunk@10338 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index c64c657978..1a4cbc464f 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1118,9 +1118,6 @@ function wp_tiny_mce( $teeny = false ) { $baseurl = includes_url('js/tinymce'); - $mce_css = $baseurl . '/wordpress.css'; - $mce_css = apply_filters('mce_css', $mce_css); - $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); // only ISO 639-1 /* @@ -1268,12 +1265,16 @@ function wp_tiny_mce( $teeny = false ) { 'entities' => '38,amp,60,lt,62,gt', 'accessibility_focus' => true, 'tab_focus' => ':prev,:next', - 'content_css' => "$mce_css", 'save_callback' => 'switchEditors.saveCallback', 'wpeditimage_disable_captions' => $no_captions, 'plugins' => "$plugins" ); + $mce_css = apply_filters('mce_css', ''); + + if ( ! empty($mce_css) ) + $initArray['content_css'] = "$mce_css"; + // For people who really REALLY know what they're doing with TinyMCE // You can modify initArray to add, remove, change elements of the config before tinyMCE.init // Setting "valid_elements", "invalid_elements" and "extended_valid_elements" can be done through "tiny_mce_before_init".