From e010f7c143cbca9db671c0b92e29f93b90275203 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 13 Nov 2009 18:54:54 +0000 Subject: [PATCH] Fix the editing of stylesheet files in the theme editor. git-svn-id: https://develop.svn.wordpress.org/trunk@12185 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) ) :