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' ); }