Skip to content

Commit

Permalink
plugin load fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementorProGPL committed Mar 27, 2023
1 parent db9f865 commit 35006ba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions elementor-pro-gpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@


function elementor_pro_gpl_plugin_load_plugin() {
if ( ! did_action( 'elementor/loaded' ) ) {
add_action( 'admin_notices', 'elementor_pro_gpl_plugin_fail_load' );

return;
}
if ( defined( 'ELEMENTOR_PRO_VERSION' ) ) {
return;
}
Expand Down Expand Up @@ -50,6 +46,12 @@ function elementor_pro_gpl_plugin_load_plugin() {
function elementor_pro_gpl_load_plugin_func() {
load_plugin_textdomain( 'elementor-pro' );

if ( ! did_action( 'elementor/loaded' ) ) {
add_action( 'admin_notices', 'elementor_pro_gpl_plugin_fail_load' );

return;
}

$elementor_version_required = '3.8.0';
if ( ! version_compare( ELEMENTOR_VERSION, $elementor_version_required, '>=' ) ) {
add_action( 'admin_notices', 'elementor_pro_gpl_plugin_fail_load_out_of_date' );
Expand Down

0 comments on commit 35006ba

Please sign in to comment.