Apply_filters is used in header.php to get the logged-in contact.
This function requires a second parameter even if this parameter
is an empty string. That is exactly what's been added with this
change, to avoid errors indicating such.
<?php if (current_user_can("glm_members_main_menu")) { ?>
<div class="member-box">
<?php
- $currentUser = apply_filters("glma_get_logged_in_contact");
+ $currentUser = apply_filters("glma_get_logged_in_contact", "");
if ( $currentUser ) {
//echo $currentUser["fname"] . " " . $currentUser["lname"]; // This is the CONTACT name
<?php if (current_user_can("glm_members_main_menu")) { ?>
<div class="member-box">
<?php
- $currentUser = apply_filters("glma_get_logged_in_contact");
+ $currentUser = apply_filters("glma_get_logged_in_contact", "");
if ( $currentUser ) {
//echo $currentUser["fname"] . " " . $currentUser["lname"]; // This is the CONTACT name
echo "<span class='name-member'>Name: " . apply_filters("glma_get_member_name", $currentUser["ref_dest"]) . "</span>"; // This is the MEMBER name