Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/bp-xprofile/bp-xprofile-admin.php b/bp-xprofile/bp-xprofile-admin.php
- index 95151ea..0891d2c 100644
- --- a/bp-xprofile/bp-xprofile-admin.php
- +++ b/bp-xprofile/bp-xprofile-admin.php
- @@ -247,6 +247,10 @@ function xprofile_admin_manage_field( $group_id, $field_id = null ) {
- $field->is_required = wp_filter_kses( $_POST['required'] );
- $field->type = wp_filter_kses( $_POST['fieldtype'] );
- + // Allow newly-created fields to be deleted by default
- + if ( ! $field_id )
- + $field->can_delete = 1;
- +
- if ( !empty( $_POST["sort_order_{$field->type}"] ) )
- $field->order_by = wp_filter_kses( $_POST["sort_order_{$field->type}"] );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement