From ae4040368c90112c5b42085386e0e2c213776972 Mon Sep 17 00:00:00 2001 From: Yordan Soares <38109855+YordanSoares@users.noreply.github.com> Date: Sun, 11 Jul 2021 23:38:53 -0400 Subject: [PATCH] Fix the payment method title for the option "Other" Closes: #30255 --- includes/admin/meta-boxes/class-wc-meta-box-order-data.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php index ba348853fe3..f4b568357d6 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php @@ -600,6 +600,10 @@ class WC_Meta_Box_Order_Data { $payment_method_title = $methods[ $payment_method ]->get_title(); } + if ( $payment_method == 'other') { + $payment_method_title = esc_html__( 'Other', 'woocommerce' ); + } + $props['payment_method'] = $payment_method; $props['payment_method_title'] = $payment_method_title; }