Changeset 12768 for trunk/src/bp-xprofile/bp-xprofile-caps.php
- Timestamp:
- 10/26/2020 02:11:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-caps.php
r11301 r12768 86 86 if ( 'bp_xprofile_change_field_visibility' === $capability && 0 === $user_id ) { 87 87 $field_id = bp_get_the_profile_field_id(); 88 if ( $field_id && $field = xprofile_get_field( $field_id ) ) {88 if ( $field_id && $field = xprofile_get_field( $field_id, null, false ) ) { 89 89 $user_can = 'allowed' === $field->allow_custom_visibility; 90 90 }
Note: See TracChangeset
for help on using the changeset viewer.