Skip to content

Commit

Permalink
[BUGFIX] Bad ressources URL when in child theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelperrin committed Dec 4, 2018
1 parent 5abbe95 commit 16f1330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Assets/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 16f1330

Please sign in to comment.