Merge pull request #1870 from woocommerce/fix-continuation-label

Keep default "Place order" button text in continuation
This commit is contained in:
Emili Castells 2023-11-28 10:55:33 +01:00 committed by GitHub
commit 0e19c8925f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,8 +275,9 @@ class PayPalGateway extends \WC_Payment_Gateway {
if ( $order &&
( $order->status()->is( OrderStatus::APPROVED ) || $order->status()->is( OrderStatus::COMPLETED ) )
) {
$this->title = $this->funding_source_renderer->render_name( $funding_source );
$this->description = $this->funding_source_renderer->render_description( $funding_source );
$this->title = $this->funding_source_renderer->render_name( $funding_source );
$this->description = $this->funding_source_renderer->render_description( $funding_source );
$this->order_button_text = null;
}
}