From f62b5a4f51124fe60c9214b75d7f441906c0e7d5 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 27 Sep 2016 15:31:19 -0400 Subject: [PATCH] Using MEMBERS_ONLY_ID constant for convenience Throughout the theme we use the a very verbose way to get the members only id: get_option(GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ ONLY_ID) -- this is meant to simplify that. --- functions.php | 2 ++ sections/header.php | 1 + sections/interior-page.php | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index d50bb3c..f88f75d 100644 --- a/functions.php +++ b/functions.php @@ -2,6 +2,8 @@ require_once 'lib/menu-walker.php'; require_once 'lib/navigation.php'; +define( MEMBERS_ONLY_ID, get_option( GLM_MEMBERS_PLUGIN_OPTION_MEMBERS_ONLY_ID ) ); + $ancestorId = null; $includePages = array(); $frontPageId = get_option('page_on_front'); diff --git a/sections/header.php b/sections/header.php index b80948c..692a822 100644 --- a/sections/header.php +++ b/sections/header.php @@ -13,6 +13,7 @@
diff --git a/sections/interior-page.php b/sections/interior-page.php index 78a680b..d30e5fc 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -32,7 +32,7 @@
- +