Changeset 5946
- Timestamp:
- 10/27/2015 12:07:35 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/functions.php
r5926 r5946 139 139 * Get the poster IP address 140 140 * 141 * @since bbPress (r3120) 141 * @since 2.0.0 bbPress (r3120) 142 * @since 2.6.0 bbPress (r5609) Added `empty()` check for unit tests 142 143 * 143 144 * @return string … … 148 149 $remote_address = ! empty( $_SERVER['REMOTE_ADDR'] ) 149 150 ? $_SERVER['REMOTE_ADDR'] 150 : ' 0.0.0.0';151 : '127.0.0.1'; 151 152 152 153 // Remove any unsavory bits -
trunk/tests/phpunit/includes/install.php
r5770 r5946 32 32 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1'; 33 33 $_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN; 34 $_SERVER['REMOTE_ADDR'] = ' 0.0.0.0';34 $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; 35 35 36 36 // Fix PHP identity crisis -
trunk/tests/phpunit/testcases/core/update.php
r5883 r5946 132 132 133 133 // Topic meta 134 $this->assertSame( ' 0.0.0.0', bbp_current_author_ip( $topic_id ) );134 $this->assertSame( '127.0.0.1', bbp_current_author_ip( $topic_id ) ); 135 135 $this->assertSame( $forum_id, bbp_get_topic_forum_id( $topic_id ) ); 136 136 $this->assertSame( 1, bbp_get_topic_voice_count( $topic_id, true ) ); … … 142 142 143 143 // Reply Meta 144 $this->assertSame( ' 0.0.0.0', bbp_current_author_ip( $reply_id ) );144 $this->assertSame( '127.0.0.1', bbp_current_author_ip( $reply_id ) ); 145 145 $this->assertSame( $forum_id, bbp_get_reply_forum_id( $reply_id ) ); 146 146 $this->assertSame( $topic_id, bbp_get_reply_topic_id( $reply_id ) ); -
trunk/tests/phpunit/testcases/users/template/user.php
r5902 r5946 324 324 $t = $this->factory->topic->create(); 325 325 326 $author_ip = '<span class="bbp-author-ip">( 0.0.0.0)</span>';326 $author_ip = '<span class="bbp-author-ip">(127.0.0.1)</span>'; 327 327 328 328 // String.
Note: See TracChangeset
for help on using the changeset viewer.