Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.66 KB | None | 0 0
  1. diff --git a/bp-xprofile/bp-xprofile-admin.php b/bp-xprofile/bp-xprofile-admin.php
  2. index 95151ea..0891d2c 100644
  3. --- a/bp-xprofile/bp-xprofile-admin.php
  4. +++ b/bp-xprofile/bp-xprofile-admin.php
  5. @@ -247,6 +247,10 @@ function xprofile_admin_manage_field( $group_id, $field_id = null ) {
  6.             $field->is_required = wp_filter_kses( $_POST['required'] );
  7.             $field->type        = wp_filter_kses( $_POST['fieldtype'] );
  8.  
  9. +           // Allow newly-created fields to be deleted by default
  10. +           if ( ! $field_id )
  11. +               $field->can_delete = 1;
  12. +
  13.             if ( !empty( $_POST["sort_order_{$field->type}"] ) )
  14.                 $field->order_by = wp_filter_kses( $_POST["sort_order_{$field->type}"] );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement