← All changes
|
modules/atomic-widgets/styles/atomic-widget-styles.php
+1
-1
4.2.2
→
3.35.7
View file →
| @@ -37,9 +37,9 @@ | ||
| 37 | 37 | add_action( 'delete_option__elementor_pro_license_v2_data', fn() => Plugin::$instance->files_manager->clear_cache() ); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | private function register_styles( Atomic_Styles_Manager $styles_manager, array $post_ids ) { |
| 41 | - $context = $this->get_context( Plugin::$instance->preview->is_editor_or_preview() ); | |
| 41 | + $context = $this->get_context( is_preview() ); | |
| 42 | 42 | |
| 43 | 43 | foreach ( $post_ids as $post_id ) { |
| 44 | 44 | $get_styles = fn() => $this->parse_post_styles( $post_id ); |
| 45 | 45 | |