Do not remove "sale date from" when the sale is still active

Do not remove "sale date from" when the sale is still active, as in some legislations it's mandatory to show the start and end date of sales, and developers can get it from this field.

Closes #34696
This commit is contained in:
Marco Almeida 2023-08-29 18:07:16 +01:00 committed by GitHub
parent db9cb4db4b
commit 5446cb4413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -448,7 +448,6 @@ function wc_scheduled_sales() {
if ( $sale_price ) {
$product->set_price( $sale_price );
$product->set_date_on_sale_from( '' );
} else {
$product->set_date_on_sale_to( '' );
$product->set_date_on_sale_from( '' );