- Timestamp:
- 01/18/2020 12:44:17 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r12317 r12529 178 178 $this->populate( $id, $user_id, $get_data ); 179 179 180 // Initiali se the type obj to prevent fatals when creating new profile fields.180 // Initialize the type obj to prevent fatals when creating new profile fields. 181 181 } else { 182 182 $this->type_obj = bp_xprofile_create_field_type( 'textbox' ); … … 640 640 } 641 641 642 // If no member types have been saved, inte pret as *all* member types.642 // If no member types have been saved, interpret as *all* member types. 643 643 if ( empty( $types ) ) { 644 644 $types = array_values( $registered_types ); … … 1073 1073 1074 1074 /** 1075 * Validate form field data on su mbission.1075 * Validate form field data on submission. 1076 1076 * 1077 1077 * @since 2.2.0 … … 1108 1108 } 1109 1109 1110 // Get field type so we can check for and lavidate any field options.1110 // Get field type so we can check for and validate any field options. 1111 1111 $field_type = bp_xprofile_create_field_type( $_POST['fieldtype'] ); 1112 1112 … … 1176 1176 public function render_admin_form( $message = '' ) { 1177 1177 1178 // Users Admin URL 1178 // Users Admin URL. 1179 1179 $users_url = bp_get_admin_url( 'users.php' ); 1180 1180 1181 // Add New 1181 // Add New. 1182 1182 if ( empty( $this->id ) ) { 1183 1183 $title = __( 'Add New Field', 'buddypress' ); … … 1201 1201 } 1202 1202 1203 // Edit 1203 // Edit. 1204 1204 } else { 1205 1205 $title = __( 'Edit Field', 'buddypress' ); … … 1614 1614 private function default_field_hidden_inputs() { 1615 1615 1616 // Nonce 1616 // Nonce. 1617 1617 wp_nonce_field( 'bp_xprofile_admin_field', 'bp_xprofile_admin_field' ); 1618 1618
Note: See TracChangeset
for help on using the changeset viewer.