Members only page ID option retrieved correctly
authorLaury GvR <laury@gaslightmedia.com>
Thu, 11 May 2017 19:26:01 +0000 (15:26 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 11 May 2017 19:26:01 +0000 (15:26 -0400)
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

index 67e2bd5..26bc68c 100644 (file)
@@ -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);