#CHANGELOG
- Added an
aria-currentitem. - Added
.nav-itemfor the<li>and.nav-linkfor the<a>in fallback function. - Some escape improvements.
- Don't pass
$attributesto element closing function as it's ignored anyway.
- Fix typo in function name 'seporate'->'separate' (private function, no need to add back-compat).
- Prevent error
trying to get property of non-objectwhen no menu is set to a location using the walker. - Add
$depthas 4th parameter passed tonav_menu_link_attributes. - Add support for
dropdown-item-textlinkmod type.
- Drop composer class autoload statement.
- Fix dropdown opener having empty string for href value.
- More accurate regex matching of icon and linkmod classnames.
- Changed composer package type to
libraryfromwordpress-pluginagain. - Tests: Add unit tests for the function that separates classnames for the walker.
- Fix case sensitive matching to now match mixes of upper and lower case.
- Fix untranslated string in fallback (this was lost in transition between v3 and v4, fixed again).
- Added a prefix on @since tags to highlight when they refer to WP core instead of this class.
- Rework of
start_lvl()andstart_el()based on latestWalker_Nav_MenuClass from WP core.- Whitespace preservation method improvements.
- Added
nav_menu_item_argsfilter andnav_menu_item_titlebrought in at WP 4.4.0 - Use
the_titlefilter prior tonav_menu_item_title.
- Added a labelled-by attribute to dropdowns for accessibility.
- Links inside dropdown have
.dropdown-iteminstead of.nav-link. - Remove
<span class="carat">after parent dropdown items. - Support
echoarg in fallback menu. props: @toddlevy - Add
.activeto parent when a child is current page. props: @zyberspace - Fix to correct output of dropdown atts and styles when depth passed to wp_nav_menu is <= 1. props: @chrisgeary92
- Move icon output to a local var instead of modifying and clearing a global object.
- Reassign filtered classes back to $classes array so that updated classes can be accessed later if needed. props: @lf-jeremy
- Update to work with Bootstrap v4.
- Added
.nav-itemand.nav-linkto<li>and<a>respectively.
- Added
- Dropped support for using title attribute to add link modifiers and icons.
- Added support for link modifiers and icons through WP Menu Builder 'classes' input.
- Icon support is for Font Awesome 4/5 and Glyphicons icons.
- Added unit tests for the
fallbackmethod. - Added code to handle icon-only menus.
- Fix untranslated string in fallback.
- Instruct screenreaders to ignore icons when present.
- Added basic unit tests and travis config.
- Swapped to IF statements with curly braces.
- Adds
$deptharg for nav_menu_css_class filter. - Fix sanitization function used for class output in fallback.
- Changed composer package type to
libraryfromwordpress-plugin.
- Fixed all reported issues by WP Enforcer.
- Fixed several Code Climate issues.
- Updated fallback function to accept args array from
wp_nav_menu.
- Included a fallback function that adds a link to the WordPress menu manager if no menu has been assigned to the theme location.
- Small tweak to ensure carets are only displayed on top level dropdowns.
- Added missing active class to active menu items.
- Class was completly re-written using the latest Wordpress 3.6 walker class.
- Now full supports Bootstrap 3.0+
- Tested with wp_debug & the Theme Check plugin.
All notable changes to this project will be documented in this file. Please read Keep a Change Log for more information. This project adheres to Semantic Versioning.