From df6bb125213e8b9f945a0833ce7e9a2f6355f1bc Mon Sep 17 00:00:00 2001 From: selul Date: Tue, 28 May 2019 11:25:34 +0300 Subject: [PATCH] fix: undefined class on diff module which should check the class on global namespace --- src/Modules/Endpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Endpoint.php b/src/Modules/Endpoint.php index 400d7cfa..6b5db061 100644 --- a/src/Modules/Endpoint.php +++ b/src/Modules/Endpoint.php @@ -273,7 +273,7 @@ private function generate_diff( $product, $files, $recurse = false ) { // fetch the calculated hashes. if ( ! $wp_filesystem->is_readable( $path . '/' . self::HASH_FILE ) ) { - return new WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) ); + return new \WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) ); } $hashes = json_decode( $wp_filesystem->get_contents( $path . '/' . self::HASH_FILE ), true );