Recycling laws changed and plastic bags ceased to be readily available. It's not a change in prosecution that happened, it's a change in the availability of the disposal mechanism.
The homeless have always been there, the poop, the needles, and the other trash was less visible - until the plastic bag bans - now there is no ready disposal mechanism.