Changeset 10022 for trunk/src/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 07/21/2015 02:00:38 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r9974 r10022 362 362 } 363 363 364 // Set member types. 365 if ( isset( $_POST['has-member-types'] ) ) { 366 $member_types = array(); 367 if ( isset( $_POST['member-types'] ) ) { 368 $member_types = stripslashes_deep( $_POST['member-types'] ); 369 } 370 371 $field->set_member_types( $member_types ); 372 } 373 364 374 // Validate default visibility 365 375 if ( ! empty( $_POST['default-visibility'] ) && in_array( $_POST['default-visibility'], wp_list_pluck( bp_xprofile_get_visibility_levels(), 'id' ) ) ) { … … 500 510 <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php esc_html_e( '(Required)', 'buddypress' ); endif; ?> 501 511 <?php if ( bp_xprofile_get_meta( $field->id, 'field', 'signup_position' ) ) : ?><?php esc_html_e( '(Sign-up)', 'buddypress' ); endif; ?> 512 <?php if ( bp_get_member_types() ) : echo $field->get_member_type_label(); endif; ?> 502 513 503 514 <?php
Note: See TracChangeset
for help on using the changeset viewer.