Changeset 42112
- Timestamp:
- 11/02/2017 11:04:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r42011 r42112 433 433 switch ( $type ) { 434 434 case 'php': 435 $allowed_files = array_merge( $allowed_files, $theme->get_files( 'php', 1 ) );435 $allowed_files = array_merge( $allowed_files, $theme->get_files( 'php', -1 ) ); 436 436 break; 437 437 case 'css': 438 $style_files = $theme->get_files( 'css' );438 $style_files = $theme->get_files( 'css', -1 ); 439 439 $allowed_files['style.css'] = $style_files['style.css']; 440 440 $allowed_files = array_merge( $allowed_files, $style_files ); 441 441 break; 442 442 default: 443 $allowed_files = array_merge( $allowed_files, $theme->get_files( $type ) );443 $allowed_files = array_merge( $allowed_files, $theme->get_files( $type, -1 ) ); 444 444 break; 445 445 }
Note: See TracChangeset
for help on using the changeset viewer.