diff --git src/includes/users/functions.php src/includes/users/functions.php
index 569970b..6e5396f 100644
--- src/includes/users/functions.php
+++ src/includes/users/functions.php
@@ -147,7 +147,7 @@ function bbp_current_author_ip() {
 	// Check for remote address
 	$remote_address = ! empty( $_SERVER['REMOTE_ADDR'] )
 		? $_SERVER['REMOTE_ADDR']
-		: '0.0.0.0';
+		: '127.0.0.1';
 
 	// Remove any unsavory bits
 	$retval = preg_replace( '/[^0-9a-fA-F:., ]/', '', $remote_address );
diff --git tests/phpunit/includes/install.php tests/phpunit/includes/install.php
index 09a8a16..20ec273 100644
--- tests/phpunit/includes/install.php
+++ tests/phpunit/includes/install.php
@@ -31,7 +31,7 @@ tests_add_filter( 'plugins_loaded', '_load_bbpress' );
 // Override some fussy global values
 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
 $_SERVER['HTTP_HOST']       = WP_TESTS_DOMAIN;
-$_SERVER['REMOTE_ADDR']     = '0.0.0.0';
+$_SERVER['REMOTE_ADDR']     = '127.0.0.1';
 
 // Fix PHP identity crisis
 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
diff --git tests/phpunit/includes/testcase.php tests/phpunit/includes/testcase.php
index 9935978..f6b64ba 100644
--- tests/phpunit/includes/testcase.php
+++ tests/phpunit/includes/testcase.php
@@ -33,6 +33,12 @@ class BBP_UnitTestCase extends WP_UnitTestCase {
 		if ( class_exists( 'BP_UnitTest_Factory' ) ) {
 			$this->bp_factory = new BP_UnitTest_Factory();
 		}
+
+		// Our default is ugly permalinks, so reset when needed.
+		global $wp_rewrite;
+		if ( $wp_rewrite->permalink_structure ) {
+			$this->set_permalink_structure();
+		}
 	}
 
 	function clean_up_global_scope() {
@@ -340,4 +346,29 @@ class BBP_UnitTestCase extends WP_UnitTestCase {
 		global $wpdb;
 		$wpdb->query( 'COMMIT;' );
 	}
+
+	/**
+	 * Utility method that resets permalinks and flushes rewrites.
+	 *
+	 * @since 2.6.0 bbPress (rXXXX)
+	 *
+	 * @global WP_Rewrite $wp_rewrite
+	 *
+	 * @uses WP_UnitTestCase::set_permalink_structure()
+	 *
+	 * @param string $structure Optional. Permalink structure to set. Default empty.
+	 */
+	public function set_permalink_structure( $structure = '' ) {
+
+		// Use WP 4.4+'s version if it exists.
+		if ( method_exists( 'parent', 'set_permalink_structure' ) ) {
+			parent::set_permalink_structure( $structure );
+		} else {
+			global $wp_rewrite;
+
+			$wp_rewrite->init();
+			$wp_rewrite->set_permalink_structure( $structure );
+			$wp_rewrite->flush_rules();
+		}
+	}
 }
diff --git tests/phpunit/testcases/core/update.php tests/phpunit/testcases/core/update.php
index b4b848c..eebb360 100644
--- tests/phpunit/testcases/core/update.php
+++ tests/phpunit/testcases/core/update.php
@@ -131,7 +131,7 @@ class BBP_Tests_Core_Update extends BBP_UnitTestCase {
 		$this->assertSame( '1 day, 16 hours ago', bbp_get_forum_last_active_time( $forum_id ) );
 
 		// Topic meta
-		$this->assertSame( '0.0.0.0', bbp_current_author_ip( $topic_id ) );
+		$this->assertSame( '127.0.0.1', bbp_current_author_ip( $topic_id ) );
 		$this->assertSame( $forum_id, bbp_get_topic_forum_id( $topic_id ) );
 		$this->assertSame( 1, bbp_get_topic_voice_count( $topic_id, true ) );
 		$this->assertSame( 1, bbp_get_topic_reply_count( $topic_id, true ) );
@@ -141,7 +141,7 @@ class BBP_Tests_Core_Update extends BBP_UnitTestCase {
 		$this->assertSame( '1 day, 16 hours ago', bbp_get_topic_last_active_time( $topic_id ) );
 
 		// Reply Meta
-		$this->assertSame( '0.0.0.0', bbp_current_author_ip( $reply_id ) );
+		$this->assertSame( '127.0.0.1', bbp_current_author_ip( $reply_id ) );
 		$this->assertSame( $forum_id, bbp_get_reply_forum_id( $reply_id ) );
 		$this->assertSame( $topic_id, bbp_get_reply_topic_id( $reply_id ) );
 	}
diff --git tests/phpunit/testcases/forums/functions/query.php tests/phpunit/testcases/forums/functions/query.php
index e711291..bbc0eb0 100644
--- tests/phpunit/testcases/forums/functions/query.php
+++ tests/phpunit/testcases/forums/functions/query.php
@@ -47,7 +47,7 @@ class BBP_Tests_Forums_Functions_Query extends BBP_UnitTestCase {
 			),
 		) );
 
-		$this->assertEquals( array( $t1, $t2, $t3 ), bbp_forum_query_topic_ids( $f ) );
+		$this->assertEqualSets( array( $t1, $t2, $t3 ), bbp_forum_query_topic_ids( $f ) );
 	}
 
 	/**
@@ -64,7 +64,7 @@ class BBP_Tests_Forums_Functions_Query extends BBP_UnitTestCase {
 			'post_parent' => $f1,
 		) );
 
-		$this->assertEquals( array( $f2, $f3 ), bbp_forum_query_subforum_ids( $f1 ) );
+		$this->assertEqualSets( array( $f2, $f3 ), bbp_forum_query_subforum_ids( $f1 ) );
 	}
 
 	/**
diff --git tests/phpunit/testcases/users/template/user.php tests/phpunit/testcases/users/template/user.php
index ea400ee..8a93cde 100644
--- tests/phpunit/testcases/users/template/user.php
+++ tests/phpunit/testcases/users/template/user.php
@@ -24,11 +24,6 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		$this->set_current_user( $this->old_current_user );
 	}
 
-	private function set_permalink_structure( $permalink_structure = '/%year%/%monthnum%/%day%/%postname%/' ) {
-		global $wp_rewrite;
-		$wp_rewrite->set_permalink_structure( $permalink_structure );
-	}
-
 	/**
 	 * @covers ::bbp_user_id
 	 * @covers ::bbp_get_user_id
@@ -129,7 +124,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		$display_name = $this->keymaster_userdata->display_name;
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 
 		$profile_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" rel="nofollow">' . $display_name . '</a>';
 		$user_profile_link = bbp_get_user_profile_link( $this->keymaster_id );
@@ -144,7 +139,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 
 		$profile_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '" rel="nofollow">' . $display_name . '</a>';
 		$user_profile_link = bbp_get_user_profile_link( $this->keymaster_id );
@@ -179,7 +174,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_get_user_profile_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$profile_url      = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/';
 		$user_profile_url = bbp_get_user_profile_url( $this->keymaster_id );
 
@@ -193,7 +188,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 
 		$profile_url      = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id;
 		$user_profile_url = bbp_get_user_profile_url( $this->keymaster_id );
@@ -214,7 +209,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		$display_name = $this->keymaster_userdata->display_name;
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$profile_edit_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/" rel="nofollow">' . $display_name . '</a>';
 		$user_profile_edit_link = bbp_get_user_profile_edit_link( $this->keymaster_id );
 
@@ -228,7 +223,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$profile_edit_link      = '<a href="http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;edit=1" rel="nofollow">' . $display_name . '</a>';
 		$user_profile_edit_link = bbp_get_user_profile_edit_link( $this->keymaster_id );
 
@@ -246,7 +241,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_user_profile_edit_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/';
 
 		// Output.
@@ -256,7 +251,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;edit=1';
 
 		// Output.
@@ -270,14 +265,14 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_get_user_profile_edit_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/edit/';
 
 		// String.
 		$this->assertSame( $profile_edit_url, bbp_get_user_profile_edit_url( $this->keymaster_id ) );
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&edit=1';
 
 		// String.
@@ -323,7 +318,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_get_author_ip() {
 		$t = $this->factory->topic->create();
 
-		$author_ip = '<span class="bbp-author-ip">(0.0.0.0)</span>';
+		$author_ip = '<span class="bbp-author-ip">(127.0.0.1)</span>';
 
 		// String.
 		$this->assertSame( $author_ip, bbp_get_author_ip( $t ) );
@@ -375,7 +370,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_favorites_permalink() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/favorites/';
 
 		// Output.
@@ -385,7 +380,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$favorites_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;bbp_favs=favorites';
 
 		// Output.
@@ -399,14 +394,14 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
  	public function test_bbp_get_favorites_permalink() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/favorites/';
 
 		// String.
 		$this->assertSame( $favorites_url, bbp_get_favorites_permalink( $this->keymaster_id ) );
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$favorites_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_favs=favorites';
 
 		// String.
@@ -431,7 +426,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_subscriptions_permalink() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
 
 		// Output.
@@ -441,7 +436,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;bbp_subs=subscriptions';
 
 		// Output.
@@ -455,14 +450,14 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
  	public function test_bbp_get_subscriptions_permalink() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/subscriptions/';
 
 		// String.
 		$this->assertSame( $subscriptions_url, bbp_get_subscriptions_permalink( $this->keymaster_id ) );
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$subscriptions_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_subs=subscriptions';
 
 		// String.
@@ -564,7 +559,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_user_topics_created_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/topics/';
 
 		// Output.
@@ -574,7 +569,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;bbp_tops=1';
 
 		// Output.
@@ -588,14 +583,14 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_get_user_topics_created_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/topics/';
 
 		// String.
 		$this->assertSame( $topics_created_url, bbp_get_user_topics_created_url( $this->keymaster_id ) );
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$topics_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&bbp_tops=1';
 
 		// String.
@@ -608,7 +603,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_user_replies_created_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/replies/';
 
 		// Output.
@@ -618,7 +613,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user='. $this->keymaster_id . '&#038;bbp_reps=1';
 
 		// Output.
@@ -632,14 +627,14 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 	public function test_bbp_get_user_replies_created_url() {
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/replies/';
 
 		// String.
 		$this->assertSame( $replies_created_url, bbp_get_user_replies_created_url( $this->keymaster_id ) );
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$replies_created_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user='. $this->keymaster_id . '&bbp_reps=1';
 
 		// String.
@@ -714,7 +709,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		$wp_avatar = get_avatar( $current_user, $size );
 
 		// Pretty permalinks
-		$this->set_permalink_structure();
+		$this->set_permalink_structure( '/%postname%/' );
 		$author_link = '<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
 			'&#039;s profile" class="bbp-author-avatar" rel="nofollow">' . $wp_avatar .
 			'</a>&nbsp;<a href="http://' . WP_TESTS_DOMAIN . '/forums/user/' . $this->keymaster_userdata->user_nicename . '/" title="View ' . $display_name .
@@ -730,7 +725,7 @@ class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
 		ob_clean();
 
 		// Ugly permalinks
-		$this->set_permalink_structure( '' );
+		$this->set_permalink_structure();
 		$author_link = '<a href="http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '" title="View ' . $display_name .
 			'&#039;s profile" class="bbp-author-avatar" rel="nofollow">' . $wp_avatar .
 			'</a>&nbsp;<a href="http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '" title="View ' . $display_name .
