Skip to content

Commit 3821632

Browse files
authored
Merge pull request #428 from WordPress/fix/424-mail
Do not send email after “install”
2 parents 587489e + 36bc6b2 commit 3821632

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

includes/Checker/Runtime_Environment_Setup.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,18 @@ static function () use ( $permalink_structure ) {
4848
}
4949
);
5050

51+
// Do not send post-install notification email, see https://github.com/WordPress/plugin-check/issues/424.
52+
add_filter( 'pre_wp_mail', '__return_false' );
53+
5154
wp_install(
5255
'Plugin Check',
5356
'plugincheck',
5457
5558
false
5659
);
5760

61+
remove_filter( 'pre_wp_mail', '__return_false' );
62+
5863
// Activate the same plugins in the test environment.
5964
update_option( 'active_plugins', $active_plugins );
6065
}

0 commit comments

Comments
 (0)