From: Laury GvR Date: Thu, 11 May 2017 19:26:01 +0000 (-0400) Subject: Members only page ID option retrieved correctly X-Git-Tag: v2.9.16^2~11 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=73c6ca0431fbb7e3dc59aa555e27806551f6172d;p=WP-Plugins%2Fglm-member-db.git 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. --- 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);