From f69ec08cb6f0eee65596143686c0645fb4cd3be8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 17 Feb 2008 23:53:36 +0000 Subject: [PATCH] Load teme editor css on admin_head hook. Props DD32. see #5871 git-svn-id: https://develop.svn.wordpress.org/trunk@6891 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/theme-editor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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))