diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index bb0c94b13b..188b88e696 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -6,6 +6,11 @@ $parent_file = 'themes.php'; wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme')); +add_action( 'admin_head', 'theme_editor_css' ); +function theme_editor_css(){ + wp_admin_css( 'css/theme-editor' ); +} + $themes = get_themes(); if (empty($theme)) { @@ -64,8 +69,6 @@ default: require_once('admin-header.php'); - wp_admin_css( 'css/theme-editor' ); - update_recently_edited($file); if (!is_file($real_file))