Skip to content

Commit

Permalink
Do not send email after “install”
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Feb 14, 2024
1 parent 587489e commit 36bc6b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/Checker/Runtime_Environment_Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,18 @@ static function () use ( $permalink_structure ) {
}
);

// Do not send post-install notification email, see https://github.com/WordPress/plugin-check/issues/424.
add_filter( 'pre_wp_mail', '__return_false' );

Check warning on line 52 in includes/Checker/Runtime_Environment_Setup.php

View check run for this annotation

Codecov / codecov/patch

includes/Checker/Runtime_Environment_Setup.php#L52

Added line #L52 was not covered by tests

wp_install(
'Plugin Check',
'plugincheck',
'[email protected]',
false
);

remove_filter( 'pre_wp_mail', '__return_false' );

Check warning on line 61 in includes/Checker/Runtime_Environment_Setup.php

View check run for this annotation

Codecov / codecov/patch

includes/Checker/Runtime_Environment_Setup.php#L61

Added line #L61 was not covered by tests

// Activate the same plugins in the test environment.
update_option( 'active_plugins', $active_plugins );
}
Expand Down

0 comments on commit 36bc6b2

Please sign in to comment.