Skip to content

Commit efba214

Browse files
committed
Fixed redirect when Elementor not available
1 parent 2d8caa9 commit efba214

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mighty-addons.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ public function mighty_addons_activation_redirect() {
105105

106106
public function show_user_what_we_got() {
107107

108-
if ( get_option('activate_mighty_addons', false) ) {
108+
if ( ! did_action( 'elementor/loaded' ) ) {
109+
add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );
110+
return;
111+
} elseif ( get_option('activate_mighty_addons', false) ) {
109112

110113
delete_option('activate_mighty_addons');
111114
if(!isset($_GET['activate-multi']))

0 commit comments

Comments
 (0)