Skip to content

Commit d690f0f

Browse files
committed
Fix file type
git-svn-id: https://develop.svn.wordpress.org/trunk@7129 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6d1631a commit d690f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-admin/includes/class-wp-filesystem-direct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function dirlist($path,$incdot=false,$recursive=false){
307307
$struc['lastmod'] = date('M j',$struc['lastmodunix']);
308308
$struc['time'] = date('h:i:s',$struc['lastmodunix']);
309309
$struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f';
310-
if('folder' == $struc['type'] ){
310+
if ('d' == $struc['type'] ){
311311
$struc['files'] = array();
312312

313313
if( $incdot ){

0 commit comments

Comments
 (0)