Skip to content

Commit

Permalink
[BUGFIX] Bad ressources URL when in child theme
Browse files Browse the repository at this point in the history
Remove .idea file
  • Loading branch information
mickaelperrin committed Dec 4, 2018
1 parent 5abbe95 commit b7da2af
Showing 1 changed file with 1 addition and 1 deletion.
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 b7da2af

Please sign in to comment.