wp-bootstrap / wp-bootstrap-navwalker

A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.
https://wp-bootstrap.github.io/wp-bootstrap-navwalker/
GNU General Public License v3.0
3.37k stars 1.94k forks source link

nav_menu_css_class lacks $args attribute #424

Closed Boberro closed 5 years ago

Boberro commented 5 years ago

Steps to reproduce: Apply nav_menu_css_class filter and try to get third argument $args from it

What happens: Wordpress throws "missing argument 3" error.

pattonwebz commented 5 years ago

This seems to work in my testing. The code for that filter is in the walker here and it has all 4 expected arguments passed:

https://github.com/wp-bootstrap/wp-bootstrap-navwalker/blob/d856aae8af72742bb59f9754cdccc92a3ccf473e/class-wp-bootstrap-navwalker.php#L146