From da51434648c663c1b8f6ef2a62f7fda8953c647c Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sat, 10 Oct 2015 22:33:44 -0500 Subject: [PATCH] Remove DIST_DIR constant --- lib/assets.php | 4 ++-- lib/setup.php | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/assets.php b/lib/assets.php index 13d5616..87662ef 100644 --- a/lib/assets.php +++ b/lib/assets.php @@ -41,13 +41,13 @@ class JsonManifest { } function asset_path($filename) { - $dist_path = get_template_directory_uri() . DIST_DIR; + $dist_path = get_template_directory_uri() . '/dist/'; $directory = dirname($filename) . '/'; $file = basename($filename); static $manifest; if (empty($manifest)) { - $manifest_path = get_template_directory() . DIST_DIR . 'assets.json'; + $manifest_path = get_template_directory() . '/dist/' . 'assets.json'; $manifest = new JsonManifest($manifest_path); } diff --git a/lib/setup.php b/lib/setup.php index ae4fc16..7f4be5b 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -13,14 +13,6 @@ add_theme_support('soil-relative-urls'); // Enable relative URLs from Soil add_theme_support('soil-nice-search'); // Enable nice search from Soil add_theme_support('soil-jquery-cdn'); // Enable to load jQuery from the Google CDN -/** - * Configuration values - */ -if (!defined('DIST_DIR')) { - // Path to the build directory for front-end assets - define('DIST_DIR', '/dist/'); -} - /** * Theme setup */