roryashfordbentley / Wordpress-Bem-Menu

Better menu implementation for Wordpress using BEM syntax
138 stars 23 forks source link

Add menu_class argument to $args #7

Closed raekul closed 8 years ago

raekul commented 8 years ago

When updating to WP-4.4 the UL tag stopped receiving the custom class that is provided in the bem_menu() function call, but still received modifiers.

By adding the menu_class option to the $args array with a value of $css_class_prefix, then removing $css_class_prefix from items_wrap it appeared to fix the issue.

roryashfordbentley commented 8 years ago

Hey Luke. I can't seem to replicate this. Do you have a code snippet of the function call and the output so I can have a further look. I know we discussed this on slack but I am forgetful :)