web/wp-admin/includes/class-wp-filesystem-base.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
   208 			if ( $this->verbose )
   208 			if ( $this->verbose )
   209 				printf( __('Found %s') . '<br/>',  $base . $last_path );
   209 				printf( __('Found %s') . '<br/>',  $base . $last_path );
   210 			return trailingslashit($base . $last_path);
   210 			return trailingslashit($base . $last_path);
   211 		}
   211 		}
   212 		if ( $loop )
   212 		if ( $loop )
   213 			return false;//Prevent tihs function looping again.
   213 			return false; //Prevent tihs function looping again.
   214 		//As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
   214 		//As an extra last resort, Change back to / if the folder wasnt found. This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... mainly dedicated setups.
   215 		return $this->search_for_folder($folder, '/', true);
   215 		return $this->search_for_folder($folder, '/', true);
   216 
   216 
   217 	}
   217 	}
   218 
   218 
   240 			$info = 'b';
   240 			$info = 'b';
   241 		elseif (($perms & 0x4000) == 0x4000) // Directory
   241 		elseif (($perms & 0x4000) == 0x4000) // Directory
   242 			$info = 'd';
   242 			$info = 'd';
   243 		elseif (($perms & 0x2000) == 0x2000) // Character special
   243 		elseif (($perms & 0x2000) == 0x2000) // Character special
   244 			$info = 'c';
   244 			$info = 'c';
   245 		elseif (($perms & 0x1000) == 0x1000)// FIFO pipe
   245 		elseif (($perms & 0x1000) == 0x1000) // FIFO pipe
   246 			$info = 'p';
   246 			$info = 'p';
   247 		else // Unknown
   247 		else // Unknown
   248 			$info = 'u';
   248 			$info = 'u';
   249 
   249 
   250 		// Owner
   250 		// Owner