I think the quoted moral still applies - you obviously have to disclose what you want to earn if you expect to actually earn that. However, what I made at my last job had zero bearing on my expected salary at my current job. If a recruiter is just trying to find out what I want, they can ask. However, I think more often than not they're getting paid on the spread and if they can place me in a job with a cap of $180 for $150, they'll do so and pocket whatever their percentage of the spread is.[0]
[0] I know this isn't how all recruiters are paid, but many are.