From cf15b3eb76ed1a6c34d07ba59ceb20f1df052381 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 19 Nov 2018 00:40:25 +0100 Subject: [PATCH] Fix space usage --- inc/enqueue.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inc/enqueue.php b/inc/enqueue.php index 9748b81..92c6798 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -15,15 +15,15 @@ if ( ! function_exists( 'understrap_scripts' ) ) { */ function understrap_scripts() { // Get the theme data. - $the_theme = wp_get_theme(); + $the_theme = wp_get_theme(); $theme_version = $the_theme->get( 'Version' ); - - $css_version = $theme_version . '.' . filemtime(get_template_directory() . '/css/theme.min.css'); + + $css_version = $theme_version . '.' . filemtime( get_template_directory() . '/css/theme.min.css' ); wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version ); - wp_enqueue_script( 'jquery'); - - $js_version = $theme_version . '.' . filemtime(get_template_directory() . '/js/theme.min.js'); + wp_enqueue_script( 'jquery' ); + + $js_version = $theme_version . '.' . filemtime( get_template_directory() . '/js/theme.min.js' ); wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $js_version, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); @@ -31,4 +31,4 @@ if ( ! function_exists( 'understrap_scripts' ) ) { } } // endif function_exists( 'understrap_scripts' ). -add_action( 'wp_enqueue_scripts', 'understrap_scripts' ); \ No newline at end of file +add_action( 'wp_enqueue_scripts', 'understrap_scripts' );