- Load jQuery before Modernizr so that the fallback method will
always be applied immediately after jQuery. If a script is
enqueued in the footer after jQuery, then the fallback shows up
in the footer. Modernizr will always be in the head so this
issue won't occur.
- Move plugins.js and main.js to footer
jQuery is still kept in the head to avoid conflicts with plugins
- Modernizr is now enqueued and included after stylesheets
- jQuery is no longer hardcoded since WP now supports protocol-relative
URLs
- jQuery fallback output is handled by a new function in lib/scripts.php
(the method is still the same one from HTML5 Boilerplate)
- Create lib/rewrites.php and move everything from lib/htaccess.php
except the H5BP htaccess functionality into it
- In the config, change add_theme_support('rewrite-urls') to
add_theme_support('rewrites')
- Remove the Apache/LightSpeed HTTPD check for rewrites
- Update docs with better Nginx rewrite rules
Previous nav walker resulted in an error when no menu is set.
This fix supports supplementary classes i.e. nav-header nav-header-blue.
N.B. Bootstrap classes (nav-header, divider, divider-vertical) must be added first.
function checked if $matches[1] & $matches[2] were set, but next line operates on $matches[1][0] & $matches[2][0], so under certain circumstances, you get the following Notice: Undefined offset: 0.
Now it checks for the [0] offsets from the start.
- Move Bootstrap LESS files into new subdirectory
- Change app.css to app.less, add @import's to utilize
Bootstrap variables and mixins
- Remove plugins.js and main.js
- Move Bootstrap JS plugins into new subdirectory
- Add new _main.js file with example DOM-based routing
script that works off the WordPress body_class
- lib/scripts.php has been updated to remove all extra
CSS and JS files and also places JavaScript in the footer