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/core/update.php

    r5883 r5946  
    132132
    133133        // 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 ) );
    135135        $this->assertSame( $forum_id, bbp_get_topic_forum_id( $topic_id ) );
    136136        $this->assertSame( 1, bbp_get_topic_voice_count( $topic_id, true ) );
     
    142142
    143143        // 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 ) );
    145145        $this->assertSame( $forum_id, bbp_get_reply_forum_id( $reply_id ) );
    146146        $this->assertSame( $topic_id, bbp_get_reply_topic_id( $reply_id ) );
Note: See TracChangeset for help on using the changeset viewer.