Core-hole effect in the one-particle approximation revisited from density functional theory