mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2250 from woocommerce/fix-psalm-axo-errors
AXO: Fix PHPCS error
This commit is contained in:
commit
e0b921421f
1 changed files with 3 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue