Changeset 11052 for trunk/src/bp-xprofile/bp-xprofile-caps.php
- Timestamp:
- 09/01/2016 12:50:06 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-caps.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-caps.php
r10825 r11052 29 29 30 30 // You may pass args manually: $field_id, $profile_user_id. 31 $field_id = isset( $args[0] ) ? (int)$args[0] : bp_get_the_profile_field_id();32 $profile_user_id = isset( $args[1] ) ? (int)$args[1] : bp_displayed_user_id();31 $field_id = ! empty( $args[0] ) ? (int) $args[0] : bp_get_the_profile_field_id(); 32 $profile_user_id = isset( $args[1] ) ? (int) $args[1] : bp_displayed_user_id(); 33 33 34 34 // Visibility on the fullname field is not editable.
Note: See TracChangeset
for help on using the changeset viewer.