Skip to content

Commit

Permalink
PROD-7348 Delete xprofile related data when deleting field
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-yudhisthir committed Jun 28, 2024
1 parent 2f1a5f5 commit 674c2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bp-xprofile/bp-xprofile-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function xprofile_admin( $message = '', $type = 'error' ) {

// Delete field
} elseif ( ( false !== $field_id ) && ( 'delete_field' === $mode ) ) {
xprofile_admin_delete_field( $field_id, 'field' );
xprofile_admin_delete_field( $field_id, 'field', true );

// Delete option
} elseif ( ! empty( $option_id ) && 'delete_option' === $mode ) {
Expand Down

0 comments on commit 674c2d3

Please sign in to comment.