Skip to content

Commit

Permalink
Merge pull request #428 from WordPress/fix/424-mail
Browse files Browse the repository at this point in the history
Do not send email after “install”
  • Loading branch information
swissspidy authored Feb 14, 2024
2 parents 587489e + 36bc6b2 commit 3821632
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' );

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

remove_filter( 'pre_wp_mail', '__return_false' );

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

0 comments on commit 3821632

Please sign in to comment.