From d82daf2c5755be8311ae6c1c6791b61ecbaecee2 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Fri, 30 May 2014 23:23:45 -0700 Subject: [PATCH] Get menifest.json from file system. Fixes #1048 --- lib/scripts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scripts.php b/lib/scripts.php index 528bd9b..924c0c5 100644 --- a/lib/scripts.php +++ b/lib/scripts.php @@ -20,7 +20,7 @@ function roots_scripts() { * Read the asset names from assets-manifest.json */ if (WP_ENV !== 'development') { - $get_assets = file_get_contents(get_template_directory_uri() . '/assets/manifest.json'); + $get_assets = file_get_contents(get_template_directory() . '/assets/manifest.json'); $assets = json_decode($get_assets, true); $assets = array( 'css' => '/assets/css/main.min.css' . '?' . $assets['assets/css/main.min.css']['hash'],