Login form needed second parameter at apply_filter
authorLaury GvR <laury@gaslightmedia.com>
Wed, 24 Aug 2016 19:13:46 +0000 (15:13 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 24 Aug 2016 19:13:46 +0000 (15:13 -0400)
Apply_filter is a function that requires 2 parameters. I added
NULL as a parameter to the function call in the member login form,
which resolves the error.

parts/glm-members-only-login-form.php

index 66256b1..6acc2c6 100644 (file)
@@ -6,7 +6,7 @@
                                     else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
                                     Please enter both username and password.
                                 <?php } else { ?>    
-                                    <?php $glmAssociateConfig = apply_filters('glm_associate_config'); 
+                                    <?php $glmAssociateConfig = apply_filters('glm_associate_config', null); 
                                         $supportEmail = $glmAssociateConfig['settings']['members_only_support_email'];
                                         $supportPhone = $glmAssociateConfig['settings']['members_only_support_phone'];
                                         $glmTerm = $glmAssociateConfig['terms']['term_member'];