Make WordPress Core


Ignore:
Timestamp:
09/15/2015 08:04:33 AM (11 years ago)
Author:
johnbillion
Message:

Initialise $_SERVER[ 'REMOTE_ADDR' ] during the test bootstrap so individual tests need not.

Fixes #33877
Fixes #25162

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/ReplytoComment.php

    r31622 r34172  
    3939                $post_id = $this->factory->post->create( array( 'post_status' => 'draft' ) );
    4040                $this->_draft_post = get_post( $post_id );
    41 
    42                 $_SERVER['REMOTE_ADDR'] = '';
    4341        }
    4442
Note: See TracChangeset for help on using the changeset viewer.