While smoke testing the release I noticed the following notices:
PHP Warning: Attempt to read property "post_date" on null in /Users/matt/local/woo/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/admin/class-wcs-admin-post-types.php on line 1101
This PR fixes these issues.
How to test this PR
I found the issue while manually running the "process renewal" from the Edit subscription page
Product impact
[x] Added changelog entry (or does not apply)
[ ] Will this PR affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Will this PR affect WooCommerce Payments? yes/no/tbc, add issue ref
[ ] Added deprecated functions, hooks or classes to the spreadsheet
I've tested this PR on stores with HPOS enabled and disabled.
Confirmed the PHP warning isn't showing anymore and confirmed the "Subscription updated." messaging is displayed properly.
Description
I recently merged https://github.com/Automattic/woocommerce-subscriptions-core/pull/615 which fixed an issue with "Subscription updated." messages missing on stores with HPOS enabled.
While smoke testing the release I noticed the following notices:
This PR fixes these issues.
How to test this PR
Product impact