Changeset 11301
- Timestamp:
- 12/16/2016 09:36:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-caps.php
r11220 r11301 85 85 function bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users( $user_can, $user_id, $capability ) { 86 86 if ( 'bp_xprofile_change_field_visibility' === $capability && 0 === $user_id ) { 87 $user_can = true; 87 $field_id = bp_get_the_profile_field_id(); 88 if ( $field_id && $field = xprofile_get_field( $field_id ) ) { 89 $user_can = 'allowed' === $field->allow_custom_visibility; 90 } 88 91 } 89 92
Note: See TracChangeset
for help on using the changeset viewer.