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
This commit is contained in:
Ryan Boren 2008-02-17 23:53:36 +00:00
parent d5bc2c5b0f
commit f69ec08cb6
1 changed files with 5 additions and 2 deletions

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