Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TMZ-249] remove messages when running first step of the wizard #136

Closed

Conversation

nicoladj77
Copy link
Contributor

  • Enforce minimum core dependency
  • fix saas warnings
  • remove messages when running first step of the wizard

…as warnings, remove messages when running first step of the wizard
@nicoladj77 nicoladj77 requested a review from nuritsha December 15, 2024 15:46
@@ -206,6 +206,7 @@ private function __construct() {
}

register_activation_hook( HELLOPLUS_PLUGIN_BASE, [ $this, 'activate' ] );

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?


$plugin_version = $plugin_data['Version'];

if ( version_compare( $plugin_version, '3.25.11', '<' ) ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To simplify future maintenance, please use a const, and define it in hello-plus.php, the same value should be used in the condition and the error message.

@@ -13,6 +13,24 @@ public function install_and_activate() {
}

public function activate() {
$plugin_file = WP_PLUGIN_DIR . '/elementor/elementor.php';

if ( file_exists( $plugin_file ) ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please extract this logic to a method

@nicoladj77 nicoladj77 changed the title [TMZ-242] [TMZ-240] [TMZ-249] Enforce minimum core dependency, fix saas warnings, remove messages when running first step of the wizard [TMZ-249] remove messages when running first step of the wizard Dec 16, 2024
@nicoladj77 nicoladj77 closed this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants