From b7da2af1b0e9cfc781e1ead4b467226b4f6efcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Perrin?= Date: Tue, 4 Dec 2018 12:35:13 +0100 Subject: [PATCH] [BUGFIX] Bad ressources URL when in child theme Remove .idea file --- src/Assets/Assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Assets/Assets.php b/src/Assets/Assets.php index 9fee4c5..f23bde6 100644 --- a/src/Assets/Assets.php +++ b/src/Assets/Assets.php @@ -79,7 +79,7 @@ protected function generateFileVersion( $src ) { * @return string */ public function getThemeUri() { - $template_uri = get_template_directory_uri(); + $template_uri = get_stylesheet_directory_uri(); $template_uri = preg_replace( '~/' . preg_quote( APP_THEME_DIR_NAME, '~' ) . '/?$~', '', $template_uri ); return $template_uri; }