From d13eba54455b9383533ef78ce19c5dd93b33bd0d Mon Sep 17 00:00:00 2001 From: "Thomas A. Reinert" Date: Fri, 2 Mar 2018 15:39:39 +0100 Subject: [PATCH] Removed "false" to avoid empty "media"-value Removed "false" to avoid empty "media"-value which invalidates HTML. Renders as media="all" if omitted. See: https://developer.wordpress.org/reference/functions/wp_enqueue_style/ for how to correctly enqueue styles. --- inc/enqueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/enqueue.php b/inc/enqueue.php index 97421b6..8122dd0 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -12,7 +12,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) { function understrap_scripts() { // Get the theme data. $the_theme = wp_get_theme(); - wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ), false ); + wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $the_theme->get( 'Version' ) ); wp_enqueue_script( 'jquery'); wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), true); wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $the_theme->get( 'Version' ), true );