From 91ebae4cf5f8ec832bb9cd134b2a65d3729d7200 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 12 Aug 2020 15:26:50 +0100 Subject: [PATCH] add comment --- svg.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svg.php b/svg.php index 4ca3ccf..78ba6b5 100644 --- a/svg.php +++ b/svg.php @@ -4,9 +4,10 @@ function svg_block_init() { return; } + // remember - for a block defined in a plugin, we will not be using + // get_template_directory(), etc, it will be the equivalent for plugins. $dir = get_template_directory() . '/blocks/svg'; $uri = get_template_directory_uri() . "/blocks/svg"; - $asset_file = include( get_template_directory() . '/blocks/svg/build/index.asset.php'); $index_js = 'build/index.js';