From ea35b85da7b4e3376334e49d62863cba54f9850d Mon Sep 17 00:00:00 2001 From: Julien Melissas Date: Sat, 5 Apr 2014 00:03:24 -0400 Subject: [PATCH] - fixing weird double negative thing on line 22 - using unpackages/unoptimized modernizr when in the WordPress development environment --- lib/scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scripts.php b/lib/scripts.php index bbc8665..614884f 100644 --- a/lib/scripts.php +++ b/lib/scripts.php @@ -19,7 +19,7 @@ function roots_scripts() { * The build task in Grunt renames production assets with a hash * Read the asset names from assets-manifest.json */ - if (!(WP_ENV === 'development')) { + if (WP_ENV !== 'development') { $get_assets = file_get_contents(get_template_directory_uri() . '/assets/manifest.json'); $assets = json_decode($get_assets, true); $assets = array( @@ -32,7 +32,7 @@ function roots_scripts() { $assets = array( 'css' => '/assets/css/main.css', 'js' => '/assets/js/scripts.js', - 'modernizr' => '/assets/js/vendor/modernizr.min.js', + 'modernizr' => '/assets/vendor/modernizr/modernizr.js', 'jquery' => '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js' ); }