Changeset 41415 for branches/4.5/src/wp-admin/theme-editor.php
- Timestamp:
- 09/19/2017 10:31:43 AM (7 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/branches/4.6 merged: 41414
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-admin/theme-editor.php
r35180 r41415 100 100 $file = $allowed_files['style.css']; 101 101 } else { 102 $relative_file = $file;102 $relative_file = wp_unslash( $file ); 103 103 $file = $theme->get_stylesheet_directory() . '/' . $relative_file; 104 104 } … … 157 157 <?php endif; 158 158 159 $ description = get_file_description( $relative_file );159 $file_description = get_file_description( $relative_file ); 160 160 $file_show = array_search( $file, array_filter( $allowed_files ) ); 161 if ( $description != $file_show ) 162 $description .= ' <span>(' . $file_show . ')</span>'; 161 $description = esc_html( $file_description ); 162 if ( $file_description != $file_show ) { 163 $description .= ' <span>(' . esc_html( $file_show ) . ')</span>'; 164 } 163 165 ?> 164 166 <div class="wrap"> … … 231 233 } 232 234 233 $file_description = get_file_description( $filename);235 $file_description = esc_html( get_file_description( $filename ) ); 234 236 if ( $filename !== basename( $absolute_filename ) || $file_description !== $filename ) { 235 $file_description .= '<br /><span class="nonessential">(' . $filename. ')</span>';237 $file_description .= '<br /><span class="nonessential">(' . esc_html( $filename ) . ')</span>'; 236 238 } 237 239
Note: See TracChangeset
for help on using the changeset viewer.