Remove DIST_DIR constant
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user