This change checks the status of WordAds on the current site, and if it’s active or has been requested, displays a third version of the PromoCard
encouraging the customer to view their ads dashboard.
Testing instructions
With sites both enrolled in WordAds and not, navigate to the /earn/
section (probably using calypso live and the ?flags=earn-relayout
flag being easiest) and review what is displayed for the ads promo. Without a plan, the prompt should be to upgrade. With a plan, the prompt should be to start earning ad revenue and once it’s setup, the CTA is to view the dashboard.
N.B.
There appears to be a fair amount of different logic around the status of WordAds on a site. I’m not 100% sure whether I’m checking the correct properties at the moment. Thoughts are welcome, and I’ll do some more checking.
Unfortunately, no screenshots were provided by the developer.