Ticket #12283: 12283.testsuite.patch
File 12283.testsuite.patch, 568 bytes (added by , 15 years ago) |
---|
-
wp-test.php
68 68 // initialize wp 69 69 define('WP_INSTALLING', 1); 70 70 $_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // prevent a warning from some sloppy code in wp-settings.php 71 foreach ( array( 'HTTP_HOST', 'REQUEST_URI', 'SERVER_SOFTWARE' ) as $var ) // prevent more therin 72 if ( !isset($_SERVER[$var]) ) 73 $_SERVER[$var] = ''; 74 71 75 require_once(ABSPATH.'wp-settings.php'); 72 76 73 77 // Allow tests to override wp_die