From 95dd3f066682b07b3a5888b265f8372e1a79c3d5 Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Tue, 11 Dec 2018 11:54:06 +0000 Subject: [PATCH] Use theme version for assets --- includes/scripts-and-styles.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/scripts-and-styles.php b/includes/scripts-and-styles.php index ab950da..3c67ef0 100644 --- a/includes/scripts-and-styles.php +++ b/includes/scripts-and-styles.php @@ -26,11 +26,9 @@ function benenson_child_dequeue_styles() { */ if ( ! function_exists( 'benenson_child_enqueue_scripts' ) ) { function benenson_child_enqueue_scripts() { - wp_enqueue_style( 'benenson-global-style', get_stylesheet_directory_uri() . '/assets/styles/app.css', [], filemtime( get_stylesheet_directory() . '/assets/styles/app.css' ), 'screen' ); - wp_enqueue_style( 'benenson-print-style', get_stylesheet_directory_uri() . '/assets/styles/print.css', [], filemtime( get_stylesheet_directory() . '/assets/styles/print.css' ), 'print' ); + wp_enqueue_style( 'benenson-global-style', get_stylesheet_directory_uri() . '/assets/styles/app.css', [], '1.0.0', 'screen' ); + wp_enqueue_style( 'benenson-print-style', get_stylesheet_directory_uri() . '/assets/styles/print.css', [], '1.0.0', 'print' ); } } add_action( 'wp_enqueue_scripts', 'benenson_child_enqueue_scripts', 20 ); - -