Changeset 16718
- Timestamp:
- 12/04/2010 04:31:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r16715 r16718 45 45 wp_die(__('The requested theme does not exist.')); 46 46 47 $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']); 48 49 if (empty($file)) { 50 $file = $allowed_files[0]; 47 $allowed_files = array_merge( $themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files'] ); 48 49 if ( empty( $file ) ) { 50 if ( false !== array_search( $themes[$theme]['Stylesheet Dir'] . '/style.css', $allowed_files ) ) 51 $file = $themes[$theme]['Stylesheet Dir'] . '/style.css'; 52 else 53 $file = $allowed_files[0]; 51 54 } else { 52 55 $file = stripslashes($file);
Note: See TracChangeset
for help on using the changeset viewer.