Closed Jinksi closed 1 year ago
Resolves https://github.com/Automattic/woocommerce-subscriptions-core/pull/297#discussion_r1040509678
Note This PR is targeting the hpos-admin-ui-support branch due to the changes required for admin screens in HPOS environments awaiting merge
hpos-admin-ui-support
A variable was inadvertently removed from the hpos-admin-ui-support branch from the WCS_Admin_Meta_Boxes::add_meta_boxes(), causing an error on the subscription edit page to appear (https://github.com/Automattic/woocommerce-subscriptions-core/pull/297#discussion_r1040509678).
WCS_Admin_Meta_Boxes::add_meta_boxes()
This PR resolves this error by replacing the variable.
I have also renamed the $screen variable to $order_screen_id to help to distinguish it from $subscriptions_screen_id.
$screen
$order_screen_id
$subscriptions_screen_id
Undefined variable $current_screen
Check failing due to changes on base branch hpos-admin-ui-support.
Resolves https://github.com/Automattic/woocommerce-subscriptions-core/pull/297#discussion_r1040509678
Description
A variable was inadvertently removed from the
hpos-admin-ui-support
branch from theWCS_Admin_Meta_Boxes::add_meta_boxes()
, causing an error on the subscription edit page to appear (https://github.com/Automattic/woocommerce-subscriptions-core/pull/297#discussion_r1040509678).This PR resolves this error by replacing the variable.
I have also renamed the
$screen
variable to$order_screen_id
to help to distinguish it from$subscriptions_screen_id
.How to test this PR
Undefined variable $current_screen
error occurs.Product impact