From 4281e6f932b9bb1242be35d2b1f1ce78447e81e7 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 15 Sep 2015 10:39:43 -0500 Subject: [PATCH] Remove Modernizr --- assets/manifest.json | 3 --- bower.json | 4 ---- lib/assets.php | 8 -------- 3 files changed, 15 deletions(-) diff --git a/assets/manifest.json b/assets/manifest.json index a3b484569e..de917dc510 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -19,9 +19,6 @@ }, "jquery.js": { "bower": ["jquery"] - }, - "modernizr.js": { - "bower": ["modernizr"] } }, "config": { diff --git a/bower.json b/bower.json index 6f0568bc1f..d145e00880 100644 --- a/bower.json +++ b/bower.json @@ -7,13 +7,9 @@ "license": "MIT", "private": true, "dependencies": { - "modernizr": "2.8.2", "bootstrap-sass": "3.3.5" }, "overrides": { - "modernizr": { - "main": "./modernizr.js" - }, "bootstrap-sass": { "main": [ "./assets/stylesheets/_bootstrap.scss", diff --git a/lib/assets.php b/lib/assets.php index 6fa7583351..13d56164d2 100644 --- a/lib/assets.php +++ b/lib/assets.php @@ -4,13 +4,6 @@ /** * Scripts and stylesheets - * - * Enqueue stylesheets in the following order: - * 1. /theme/dist/styles/main.css - * - * Enqueue scripts in the following order: - * 1. /theme/dist/scripts/modernizr.js - * 2. /theme/dist/scripts/main.js */ class JsonManifest { @@ -72,7 +65,6 @@ function assets() { wp_enqueue_script('comment-reply'); } - wp_enqueue_script('modernizr', asset_path('scripts/modernizr.js'), [], null, true); wp_enqueue_script('sage/js', asset_path('scripts/main.js'), ['jquery'], null, true); } add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\assets', 100);