From: Laury GvR Date: Thu, 26 May 2016 17:22:09 +0000 (-0400) Subject: slight fix for membersonly page check X-Git-Tag: v1.0.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=44fa75f1978d17c126afa10620a9f2ba12813ad4;p=WP-Themes%2Fthinkdunes.git slight fix for membersonly page check --- diff --git a/lib/navigation.php b/lib/navigation.php index d6f957d..821e46a 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -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'])) {