From 92ffc891e0d489525f8d4ba6156ce677a63104a0 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 13 Nov 2009 18:54:54 +0000 Subject: [PATCH] Fix the editing of stylesheet files in the theme editor. git-svn-id: http://svn.automattic.com/wordpress/trunk@12185 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/theme-editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 4b2f06e02f..29119098b6 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -38,7 +38,7 @@ if (empty($file)) { if ( 'theme' == $dir ) { $file = dirname(dirname($themes[$theme]['Template Dir'])) . $file ; } else if ( 'style' == $dir) { - $file = dirname(dirname($themes[$theme]['Stylesheer Dir'])) . $file ; + $file = dirname(dirname($themes[$theme]['Stylesheet Dir'])) . $file ; } } @@ -184,7 +184,7 @@ if ($allowed_files) : $style_show = basename($style_file); $filedesc = ( $description != $style_file ) ? "$description ($style_show)" : "$description"; $filedesc = ( $style_file == $file ) ? "$description ($style_show)" : $filedesc; - $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $style_file), $filedesc ); + $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc ); } ksort( $template_mapping ); while ( list( $template_sorted_key, list( $style_file, $filedesc ) ) = each( $template_mapping ) ) :