WordPress.org

Make WordPress Core

Changeset 12185


Ignore:
Timestamp:
11/13/09 18:54:54 (4 years ago)
Author:
westi
Message:

Fix the editing of stylesheet files in the theme editor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r12063 r12185  
    3939        $file = dirname(dirname($themes[$theme]['Template Dir'])) . $file ;  
    4040    } else if ( 'style' == $dir) { 
    41         $file = dirname(dirname($themes[$theme]['Stylesheer Dir'])) . $file ;  
     41        $file = dirname(dirname($themes[$theme]['Stylesheet Dir'])) . $file ;  
    4242    } 
    4343} 
     
    185185        $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : "$description"; 
    186186        $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($style_show)</span></span>" : $filedesc; 
    187         $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $style_file), $filedesc ); 
     187        $template_mapping[ $description ] = array( _get_template_edit_filename($style_file, $stylesheet_dir), $filedesc ); 
    188188    } 
    189189    ksort( $template_mapping ); 
Note: See TracChangeset for help on using the changeset viewer.