Load teme editor css on admin_head hook. Props DD32. see #5871

git-svn-id: http://svn.automattic.com/wordpress/trunk@6891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-17 23:53:36 +00:00
parent df65d131ab
commit cba49b6185

View File

@ -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))