From 6fbf0a58745bb3002db4d6a70c75ea0319600592 Mon Sep 17 00:00:00 2001 From: Brian Coords Date: Tue, 7 Feb 2023 07:09:28 -0800 Subject: [PATCH] replaces uri with path for asset filemtime --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 8c2299da..21e4ca88 100755 --- a/functions.php +++ b/functions.php @@ -38,12 +38,12 @@ function theme_enqueue_styles() { $theme_styles = "/css/child-theme{$suffix}.css"; $theme_scripts = "/js/child-theme{$suffix}.js"; - $css_version = $theme_version . '.' . filemtime( get_stylesheet_directory_uri() . $theme_styles ); + $css_version = $theme_version . '.' . filemtime( get_stylesheet_directory() . $theme_styles ); wp_enqueue_style( 'child-understrap-styles', get_stylesheet_directory_uri() . $theme_styles, array(), $css_version ); wp_enqueue_script( 'jquery' ); - $js_version = $theme_version . '.' . filemtime( get_stylesheet_directory_uri() . $theme_scripts ); + $js_version = $theme_version . '.' . filemtime( get_stylesheet_directory() . $theme_scripts ); wp_enqueue_script( 'child-understrap-scripts', get_stylesheet_directory_uri() . $theme_scripts, array(), $js_version, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {