From 73c6ca0431fbb7e3dc59aa555e27806551f6172d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 11 May 2017 15:26:01 -0400 Subject: [PATCH] Members only page ID option retrieved correctly The option for the members only page ID tried to use a constant where it should have used a string, causing an error on plugin activation. --- setup/adminHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 67e2bd50..26bc68cc 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -55,7 +55,7 @@ $menuExists = wp_get_nav_menu_object( $menuName ); // If it doesn't exist, let's create it. if( !$menuExists){ - $membersOnlyPageID = get_option(GLM_MEMBERS_PLUGIN_MEMBERS_ONLY_ID); + $membersOnlyPageID = get_option('GLM_MEMBERS_PLUGIN_MEMBERS_ONLY_ID'); // $menu_id = wp_create_nav_menu($menuName); -- 2.17.1