Current densities in density-functional theory