Run Black Friday, Cyber Monday, or other flash sales on your WordPress-powered eCommerce or membership site with WooCommerce, Easy Digital Downloads, and Paid Memberships Pro.
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes proposed in this Pull Request:
We had a weird edge case where the post had a custom field for sale ID that wasn't actually a SWS CPT, so it was still wrapping the content of the page in the swsales divs. This change fixes that case by first validating that the returned sale is a SWS sale.
Other information:
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you successfully run tests with your changes locally?
Changelog entry
BUG FIX: Fixed edge case where a post meta field for sale ID was not a SWS CPT.
Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.
All Submissions:
Changes proposed in this Pull Request:
We had a weird edge case where the post had a custom field for sale ID that wasn't actually a SWS CPT, so it was still wrapping the content of the page in the swsales divs. This change fixes that case by first validating that the returned sale is a SWS sale.
Other information:
Changelog entry