I don't think the Enquirer was in on it. I think releasing the story now screws up the GOPe's plan to use Cruz to keep Trump under a majority of delegates.
The affair angle would only be needed if there was a Cruz surge at the convention. That is, if Hell froze over.
Yes, It certainly does mess up their plan.