Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/27/2015 12:07:35 PM (4 years ago)
Author:
netweb
Message:

Users: Update $_SERVER['REMOTE_ADDR'] IP adress check to 127.0.0.1 in bbp_current_author_ip()

This changeset updates our unit tests and ensures compatability with WordPress test suite where in [WP34172] $_SERVER[ 'REMOTE_ADDR' ] is now initialised during the test bootstrap so individual tests need not.

Props thebrandonallen. See #2883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/users/template/user.php

    r5902 r5946  
    324324        $t = $this->factory->topic->create();
    325325
    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>';
    327327
    328328        // String.
Note: See TracChangeset for help on using the changeset viewer.