From 821834513b78734711c44e45199c87ce946bddbe Mon Sep 17 00:00:00 2001 From: Stephen Beemsterboer Date: Thu, 1 Sep 2016 16:23:26 -0400 Subject: [PATCH] Correct reference of WP_CLI to use global namespace This line causes a fatal as it tries to find `WP_CLI\Utils\WP_CLI` as the class. --- php/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/utils.php b/php/utils.php index d2499de33d..5c9ffcf811 100644 --- a/php/utils.php +++ b/php/utils.php @@ -713,7 +713,7 @@ function get_temp_dir() { } if ( ! @is_writable( $temp ) ) { - WP_CLI::warning( "Temp directory isn't writable: {$temp}" ); + \WP_CLI::warning( "Temp directory isn't writable: {$temp}" ); } return $trailingslashit( $temp );