Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #8042, comment 2


Ignore:
Timestamp:
01/29/2019 08:29:37 AM (6 years ago)
Author:
Venutius
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8042, comment 2

    initial v1  
    1 I've found that this is happening because the function `get_allow_custom_visibility` in `buddypress/xprofile/classes/class-bp-profile-field` is defaulting to `allow` for all profile fields where the visibility has not been specifically disabled. this is appropriate for all profile fields except `Name` where it should be disabled even if it is not set. my proposed fix is to change line 833 as follows:
     1I've found that this is happening because the function `get_allow_custom_visibility` in `buddypress/bp-xprofile/classes/class-bp-profile-field` is defaulting to `allow` for all profile fields where the visibility has not been specifically disabled. this is appropriate for all profile fields except `Name` where it should be disabled even if it is not set. my proposed fix is to change line 833 as follows:
    22
    33`if ( 'disabled' === $allow_custom_visibility || 1 === $this->id ) {`