From 04c5f895f4158fbcc1a696c2b51183229269afe4 Mon Sep 17 00:00:00 2001 From: Richard Aber Date: Mon, 2 Apr 2018 14:39:43 -0500 Subject: [PATCH] Read asset-manifest.json from filesystem, rather than reading from URL --- wp-graphiql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-graphiql.php b/wp-graphiql.php index b7fe03a..92b1d5e 100644 --- a/wp-graphiql.php +++ b/wp-graphiql.php @@ -60,7 +60,7 @@ public function render_admin_page() { * @return array|bool|string */ public function get_app_manifest() { - $manifest = file_get_contents( plugins_url( 'wp-graphiql/assets/app/build/asset-manifest.json' ) ); + $manifest = file_get_contents( dirname( __FILE__ ) . '/assets/app/build/asset-manifest.json' ); $manifest = (array) json_decode( $manifest ); return $manifest; }