Changeset 10232 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 10/10/2015 04:13:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r10200 r10232 541 541 542 542 function xprofile_check_is_required_field( $field_id ) { 543 $field = new BP_Xprofile_Field( $field_id ); 544 545 // Define locale variable(s). 543 $field = new BP_Xprofile_Field( $field_id ); 546 544 $retval = false; 547 545 548 // Super admins can skip required check. 549 if ( bp_current_user_can( 'bp_moderate' ) && ! is_admin() ) { 550 $retval = false; 551 552 // All other users will use the field's setting. 553 } elseif ( isset( $field->is_required ) ) { 546 if ( isset( $field->is_required ) ) { 554 547 $retval = $field->is_required; 555 548 }
Note: See TracChangeset
for help on using the changeset viewer.