Changeset 38294 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 08/20/2016 11:35:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r38235 r38294 78 78 global $wp_file_descriptions, $allowed_files; 79 79 80 $relative_pathinfo = pathinfo( $file ); 80 $dirname = pathinfo( $file, PATHINFO_DIRNAME ); 81 81 82 $file_path = $allowed_files[ $file ]; 82 if ( isset( $wp_file_descriptions[ basename( $file ) ] ) && '.' === $ relative_pathinfo['dirname']) {83 if ( isset( $wp_file_descriptions[ basename( $file ) ] ) && '.' === $dirname ) { 83 84 return $wp_file_descriptions[ basename( $file ) ]; 84 85 } elseif ( file_exists( $file_path ) && is_file( $file_path ) ) {
Note: See TracChangeset
for help on using the changeset viewer.