Fixed main nav being confused for top bar
authorLaury GvR <laury@gaslightmedia.com>
Tue, 6 Mar 2018 22:10:09 +0000 (17:10 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 6 Mar 2018 22:10:09 +0000 (17:10 -0500)
commitbf412b07b1ee258995aebb65e7e2fd9a92f6826c
tree47adfcb6ace10ef5efaed04722988722625b0813
parentdd0079b5aef0fa5eecc215411ed0933f87a2c8a2
Fixed main nav being confused for top bar

Since main nav and top bar use the same walker, the static var
mainLevelCounter which keeps track of whether to apply drop-left
classes was getting the wrong values. New walker created just for
the main nav, separate from the top-bar walker.
lib/menu-walker.php
lib/navigation.php