← All changes
|
modules/promotions/widgets/atomic-form-widget-promotion.php
+2
-9
4.2.0-beta1
→
4.1.0-beta3
View file →
| @@ -23,17 +23,10 @@ | ||
| 23 | 23 | if ( ! current_user_can( 'manage_options' ) || ! $this->is_active() ) { |
| 24 | 24 | return $settings; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - if ( ! isset( $settings['atomicWidgetPromotions'] ) ) { | |
| 28 | - $settings['atomicWidgetPromotions'] = []; | |
| 29 | - } | |
| 30 | - | |
| 31 | - $settings['atomicWidgetPromotions'][] = [ | |
| 32 | - 'type' => 'atomic-form', | |
| 33 | - 'widgets' => $this->get_widgets(), | |
| 34 | - 'content' => $this->get_promotion_content(), | |
| 35 | - ]; | |
| 27 | + $settings['atomicFormPromotionWidgets'] = $this->get_widgets(); | |
| 28 | + $settings['atomicFormPromotion'] = $this->get_promotion_content(); | |
| 36 | 29 | |
| 37 | 30 | return $settings; |
| 38 | 31 | } |
| 39 | 32 | |