| @@ -4,9 +4,8 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Isolation\Elementor_Adapter; |
| 6 | 6 | use Elementor\Core\Isolation\Elementor_Adapter_Interface; |
| 7 | 7 | use Elementor\Core\Utils\Assets_Config_Provider; |
| 8 | -use Elementor\Modules\AtomicWidgets\OptIn\Opt_In as Atomic_Widgets_Opt_In; | |
| 9 | 8 | use Elementor\Modules\ElementorCounter\Module as Elementor_Counter; |
| 10 | 9 | use Elementor\Core\Upgrade\Manager as Upgrade_Manager; |
| 11 | 10 | use Elementor\Utils; |
| 12 | 11 | |
| @@ -23,12 +22,8 @@ | ||
| 23 | 22 | add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'maybe_enqueue_welcome_popover' ] ); |
| 24 | 23 | } |
| 25 | 24 | |
| 26 | 25 | public function maybe_enqueue_welcome_popover(): void { |
| 27 | - if ( ! $this->was_opt_in_clicked() ) { | |
| 28 | - return; | |
| 29 | - } | |
| 30 | - | |
| 31 | 26 | if ( $this->is_first_or_second_editor_visit() ) { |
| 32 | 27 | return; |
| 33 | 28 | } |
| 34 | 29 | |
| @@ -43,12 +38,8 @@ | ||
| 43 | 38 | $this->register_package(); |
| 44 | 39 | wp_enqueue_script( 'elementor-v2-' . self::PACKAGE_NAME ); |
| 45 | 40 | wp_set_script_translations( 'elementor-v2-' . self::PACKAGE_NAME, 'elementor' ); |
| 46 | 41 | $this->set_welcome_popover_as_displayed(); |
| 47 | - } | |
| 48 | - | |
| 49 | - private function was_opt_in_clicked(): bool { | |
| 50 | - return (bool) get_option( Atomic_Widgets_Opt_In::OPT_IN_CLICKED_OPTION ); | |
| 51 | 42 | } |
| 52 | 43 | |
| 53 | 44 | private function is_first_or_second_editor_visit(): bool { |
| 54 | 45 | if ( ! $this->elementor_adapter ) { |