Skip to content

Commit

Permalink
Refactor add_action call in modal-form-brochure.php
Browse files Browse the repository at this point in the history
The previous code had an unnecessary breaking of a simple method call into multiple lines. This refactor streamlines the add_action call for 'show_influactive_forms_error_notice' in modal-form-brochure.php, improving readability and keeping the format consistent.
  • Loading branch information
Antoine Greuzard committed Aug 4, 2023
1 parent 06fb601 commit 3f281e6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modal-form-brochure.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@
'admin_init',
static function () {
if ( ! influactive_is_active() ) {
add_action(
'admin_notices',
'show_influactive_forms_error_notice' );
add_action( 'admin_notices', 'show_influactive_forms_error_notice' );
if ( function_exists( 'deactivate_plugins' ) ) {
deactivate_plugins( plugin_basename( __FILE__ ) );
}
}
} );
}
);

/**
* Checks if the plugin Forms everywhere by Influactive is active.
Expand Down

0 comments on commit 3f281e6

Please sign in to comment.