Skip to content

Commit

Permalink
Add note to PR that adds test mode order meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinksi committed Jan 5, 2024
1 parent f570657 commit 9397f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-wc-payments-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public function enqueue_payments_scripts() {
// E.g. order and site are both in test mode, or both in live mode.
$order_mode = $order->get_meta( WC_Payments_Order_Service::WCPAY_MODE_META_KEY );
if ( '' === $order_mode ) {
// If the order doesn't have a mode set, assume it was created before the order mode meta was added and return null.
// If the order doesn't have a mode set, assume it was created before the order mode meta was added (< 6.9 PR#7651) and return null.
$order_test_mode_match = null;
} else {
$order_test_mode_match = (
Expand Down

0 comments on commit 9397f22

Please sign in to comment.