Skip to content

Commit

Permalink
Merge pull request GeoDirectory#21 from mistergiri/master
Browse files Browse the repository at this point in the history
privacy bug fixed
  • Loading branch information
NomadDevs authored and NomadDevs committed Nov 25, 2015
2 parents 77284b6 + 82e60f2 commit 092e2f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bp-compliments-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ public function setup_nav( $main_nav = array(), $sub_nav = array() ) {

$bp_compliment_can_see_others_comp_value = esc_attr( get_option('bp_compliment_can_see_others_comp'));
$bp_compliment_can_see_others_comp = $bp_compliment_can_see_others_comp_value ? $bp_compliment_can_see_others_comp_value : 'yes';

if ($bp_compliment_can_see_others_comp == 'members_choice') {
$bp_compliment_can_see_your_comp_value = esc_attr( get_user_meta(bp_displayed_user_id(), 'bp_compliment_can_see_your_comp', true));
$bp_compliment_can_see_others_comp = $bp_compliment_can_see_your_comp_value ? $bp_compliment_can_see_your_comp_value : 'yes';
}

if ($bp_compliment_can_see_others_comp == 'yes') {
$show_for_displayed_user = true;
} elseif ($bp_compliment_can_see_others_comp == 'members_only') {
Expand Down

0 comments on commit 092e2f0

Please sign in to comment.