Changeset 41399 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 09/19/2017 10:10:35 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r41376 r41399 133 133 $file = $allowed_files['style.css']; 134 134 } else { 135 $relative_file = $file;135 $relative_file = wp_unslash( $file ); 136 136 $file = $theme->get_stylesheet_directory() . '/' . $relative_file; 137 137 } … … 196 196 <?php endif; 197 197 198 $ description = get_file_description( $relative_file );198 $file_description = get_file_description( $relative_file ); 199 199 $file_show = array_search( $file, array_filter( $allowed_files ) ); 200 if ( $description != $file_show ) 201 $description .= ' <span>(' . $file_show . ')</span>'; 200 $description = esc_html( $file_description ); 201 if ( $file_description != $file_show ) { 202 $description .= ' <span>(' . esc_html( $file_show ) . ')</span>'; 203 } 202 204 ?> 203 205 <div class="wrap"> … … 270 272 } 271 273 272 $file_description = get_file_description( $filename);274 $file_description = esc_html( get_file_description( $filename ) ); 273 275 if ( $filename !== basename( $absolute_filename ) || $file_description !== $filename ) { 274 $file_description .= '<br /><span class="nonessential">(' . $filename. ')</span>';276 $file_description .= '<br /><span class="nonessential">(' . esc_html( $filename ) . ')</span>'; 275 277 } 276 278
Note: See TracChangeset
for help on using the changeset viewer.