From cd59832859cde65b84723f8af5e4336c651f619b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 1 Dec 2011 21:27:19 +0000 Subject: [PATCH] Make sure editor-buttons.css is loaded even if tiny_mce.js is used directly and the wp_theme skin is selected in the settings, see #17144 git-svn-id: https://develop.svn.wordpress.org/trunk@19533 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-editor.php | 3 +++ wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index e28cd8c8fd..a272eb7ef6 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -535,6 +535,9 @@ final class _WP_Editors { var init, ed, qt, first_init, mce = ; if ( typeof(tinymce) == 'object' ) { + // mark wp_theme/ui.css as loaded + tinymce.DOM.files[tinymce.baseURI.getURI() + '/themes/advanced/skins/wp_theme/ui.css'] = true; + for ( ed in tinyMCEPreInit.mceInit ) { if ( first_init ) { init = tinyMCEPreInit.mceInit[ed] = tinymce.extend( {}, first_init, tinyMCEPreInit.mceInit[ed] ); diff --git a/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css b/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css index c41057f8c2..2097708f0b 100644 --- a/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css +++ b/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css @@ -1 +1,2 @@ -/* not used but cannot prevent TinyMCE loading it (for now) */ +/* not used, included for back-compat, see wp-includes/css/editor-buttons.css */ +@import url("../../../../../../css/editor-buttons.css?ver=20111114");