Index: src/includes/admin/classes/class-bbp-admin.php
===================================================================
--- src/includes/admin/classes/class-bbp-admin.php	(revision 7075)
+++ src/includes/admin/classes/class-bbp-admin.php	(working copy)
@@ -933,7 +933,7 @@
 				printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
 			}
 		}
-		die();
+		wp_die();
 	}
 
 	/**
@@ -1013,7 +1013,7 @@
 				printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
 			}
 		}
-		die();
+		wp_die();
 	}
 
 	/** About *****************************************************************/
Index: src/includes/common/ajax.php
===================================================================
--- src/includes/common/ajax.php	(revision 7075)
+++ src/includes/common/ajax.php	(working copy)
@@ -155,5 +155,5 @@
 	// Send back the JSON
 	@header( 'Content-type: application/json' );
 	echo json_encode( $response );
-	die();
+	wp_die();
 }
Index: tests/phpunit/bootstrap.php
===================================================================
--- tests/phpunit/bootstrap.php	(revision 7075)
+++ tests/phpunit/bootstrap.php	(working copy)
@@ -11,7 +11,7 @@
 
 // Bail if test suite cannot be found
 if ( ! file_exists( WP_TESTS_DIR . '/includes/functions.php' ) ) {
-	die( "The WordPress PHPUnit test suite could not be found.\n" );
+	wp_die( "The WordPress PHPUnit test suite could not be found.\n" );
 } else {
 	echo "Loading WordPress PHPUnit test suite...\n";
 	require( WP_TESTS_DIR . '/includes/functions.php' );
Index: tests/phpunit/includes/define-constants.php
===================================================================
--- tests/phpunit/includes/define-constants.php	(revision 7075)
+++ tests/phpunit/includes/define-constants.php	(working copy)
@@ -50,7 +50,7 @@
 
 // No test config found.
 } else {
-	die( "wp-tests-config.php could not be found.\n" );
+	wp_die( "wp-tests-config.php could not be found.\n" );
 }
 
 // Determine whether BuddyPress is present.
