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/includes/install.php

    r5770 r5946  
    3232$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
    3333$_SERVER['HTTP_HOST']       = WP_TESTS_DOMAIN;
    34 $_SERVER['REMOTE_ADDR']     = '0.0.0.0';
     34$_SERVER['REMOTE_ADDR']     = '127.0.0.1';
    3535
    3636// Fix PHP identity crisis
Note: See TracChangeset for help on using the changeset viewer.