Contributors: Don't send inactivity emails to banned users.

Fixes #221
This commit is contained in:
Ian Dunn 2023-02-28 16:16:31 -08:00
parent 04413b9f6c
commit 2880d80e12
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
6 changed files with 36 additions and 5 deletions

View file

@ -21,7 +21,9 @@ require_once $_tests_dir . '/includes/functions.php';
* Manually load the plugin being tested.
*/
function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/index.php';
define( 'WPORG_SUPPORT_FORUMS_BLOGID', 1 );
require dirname( __FILE__, 2 ) . '/index.php';
require __DIR__ . '/helpers.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );