Merge pull request #30256 from YordanSoares/issue-30255-fix-payment-method-title-for-the-option-other

Fix the payment method title for the option "Other"
This commit is contained in:
Néstor Soriano 2021-08-06 12:41:55 +02:00 committed by GitHub
commit c11739e7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -607,6 +607,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;
}