mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix ditched_items_breakdown filter log message condition.
This commit is contained in:
parent
d48c2f60c6
commit
1e84697883
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ class PurchaseUnit {
|
|||
unset( $purchase_unit['items'] );
|
||||
unset( $purchase_unit['amount']['breakdown'] );
|
||||
|
||||
if ( isset( $this->sanitizer ) ) {
|
||||
if ( isset( $this->sanitizer ) && ( $ditch !== $ditched_items_breakdown ) ) {
|
||||
$this->sanitizer->set_last_message(
|
||||
__( 'Ditch items breakdown filter. Items and breakdown ditched.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue