← All changes
|
templates/modules/countdown-timer/single-product.php
+4
-0
1.9.10
→
2.3.2
View file →
| @@ -10,8 +10,12 @@ | ||
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | +if ( empty( $args ) ) { | |
| 15 | + return; | |
| 16 | +} | |
| 17 | + | |
| 14 | 18 | $theme = $args['theme'] ?? 'classic'; |
| 15 | 19 | $align = $args['sale_ending_alignment'] ?? 'left'; |
| 16 | 20 | |
| 17 | 21 | $min_expiration_deadline_days = (int) ( $args['min_expiration_deadline_days'] ?? 0 ); |