Verified Commit d4b21552 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Stop test configs from breaking wp-cli

parent 56b45c24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
// Serves the word "eggs" at /eggs
// Used for checking that this file has been loaded correctly

if ($_SERVER['REQUEST_URI'] == '/eggs') {
if ( !defined('WP_CLI') && $_SERVER['REQUEST_URI'] == '/eggs' ) {
	echo("eggs");
	exit;
}
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
// Serves the word "ham" at /ham
// Used for checking that this file has been loaded correctly

if ($_SERVER['REQUEST_URI'] == '/ham') {
if ( !defined('WP_CLI') && $_SERVER['REQUEST_URI'] == '/ham' ) {
	echo("ham");
	exit;
}
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
// Serves the word "spam" at /spam
// Used for checking that this file has been loaded correctly

if ($_SERVER['REQUEST_URI'] == '/spam') {
if ( !defined('WP_CLI') && $_SERVER['REQUEST_URI'] == '/spam' ) {
	echo("spam");
	exit;
}