Closed brucealdridge closed 1 year ago
@Jinksi do you mind checking that I've applied the changes to this PR as you recommended?
Just noting that there are phpcs issues unrelated to the changes in this PR. We can address those once a PR for the base branch is raised.
LGTM @james-allan 👍 although your prettier seemed to skip the bracketSpacing: true
rule.
I've pushed up these changes in 3122c99, hope that's ok 😄
Fixes #322
Description
When HPOS is enabled the default WP admin screens for custom post types can no longer be used. WooCommerce has introduced new admin screens which have changed some of the underlying functionality that we rely on.
For javascript and CSS, we relied on the class
post-type-shop_subscription
being added to the<body>
tag. With HPOS enabled this no longer happens. Instead we can use thewoocommerce_page_wc-orders--shop_subscription
class.This PR adds this class as an additional rule anywhere the old class was used.
Before
After
How to test this PR
Process renewal
action on a subscription brings up the confirmation alert.Product impact