Changeset 12694 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 07/29/2020 06:44:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r12605 r12694 208 208 * @type int $field_group_id ID of the associated field group. 209 209 * @type int $parent_id Optional. ID of the parent field. 210 * @type string $type Field type. Checked against a field_types whitelist.210 * @type string $type Field type. Checked against a list of allowed field_types. 211 211 * @type string $name Name of the new field. 212 212 * @type string $description Optional. Descriptive text for the field. … … 453 453 } 454 454 455 // For certain fields, only certain parameters are acceptable, so add them to the whitelist.455 // For certain fields, only certain parameters are acceptable, so add them to the list of allowed values. 456 456 if ( $field_type_obj->supports_options ) { 457 457 $field_type_obj->set_whitelist_values( wp_list_pluck( $field->get_children(), 'name' ) ); … … 488 488 } 489 489 490 // Check against a whitelist.490 // Check against a list of registered visibility levels. 491 491 $allowed_values = bp_xprofile_get_visibility_levels(); 492 492 if ( !array_key_exists( $visibility_level, $allowed_values ) ) {
Note: See TracChangeset
for help on using the changeset viewer.