slight fix for membersonly page check
authorLaury GvR <laury@gaslightmedia.com>
Thu, 26 May 2016 17:22:09 +0000 (13:22 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 26 May 2016 17:22:09 +0000 (13:22 -0400)
lib/navigation.php

index d6f957d..821e46a 100644 (file)
@@ -239,7 +239,6 @@ function glm_side_menu($mobile = false) {
     if( 142 == $post->post_parent || is_tree(142)){
         if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])){
             $menu       = wp_get_nav_menu_object($locations['chamber']);
-            $membersOnly = true;
         }
     }
     if(is_page(137) || 137 == $post->post_parent || is_tree(137)){
@@ -251,6 +250,7 @@ function glm_side_menu($mobile = false) {
         if (($locations = get_nav_menu_locations()) && isset($locations['members-only'])) {
             $menu       = wp_get_nav_menu_object($locations['members-only']);
         }
+        $membersOnly = true;
     } 
 
 //    if (($locations = get_nav_menu_locations()) && isset($locations['chamber']))      {