Merge pull request #2250 from woocommerce/fix-psalm-axo-errors

AXO: Fix PHPCS error
This commit is contained in:
Emili Castells 2024-05-23 15:41:12 +02:00 committed by GitHub
commit e0b921421f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,10 +54,11 @@ return array(
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
if ( $subscription_helper->plugin_is_active() ) {
$label .= __(
'<div class="ppcp-notice ppcp-notice-warning"><p><span class="highlight">Important:</span> Cannot be deactivated while the WooCommerce Subscriptions plugin is active.</p></div>',
$notice_content = __(
'<span class="highlight">Important:</span> Cannot be deactivated while the WooCommerce Subscriptions plugin is active.',
'woocommerce-paypal-payments'
);
$label .= '<div class="ppcp-notice ppcp-notice-warning"><p>' . $notice_content . '</p></div>';
}
$should_disable_checkbox = $subscription_helper->plugin_is_active() || apply_filters( 'woocommerce_paypal_payments_toggle_final_review_checkbox', false );