Change underscored_name to underscored_title
authorlaury <laury@gaslightmedia.com>
Mon, 16 May 2016 15:53:09 +0000 (11:53 -0400)
committerlaury <laury@gaslightmedia.com>
Mon, 16 May 2016 15:53:09 +0000 (11:53 -0400)
classes/glmPluginSupport.php

index f2303d0..16f9652 100644 (file)
@@ -512,7 +512,7 @@ class GlmPluginSupport
     public function createPages($requiredPages)
     {
         foreach($requiredPages as $requiredPage => $requiredPageInfo) {
-            $trimmedName = GLM_MEMBERS_PLUGIN_OPTION_PREFIX.$requiredPageInfo['underscored_name'];
+            $trimmedName = GLM_MEMBERS_PLUGIN_OPTION_PREFIX.$requiredPageInfo['underscored_title'];
             if ($requiredPageInfo['parent'] == 'associate') {
                 $postParent = get_option(GLM_MEMBERS_PLUGIN_OPTION_ASSOCIATE_ID);
             } else if ($requiredPageInfo['parent'] == 'membersonly') {