diff --git src/bp-xprofile/bp-xprofile-admin.php src/bp-xprofile/bp-xprofile-admin.php
index 8586e952b..8d14daeae 100644
|
|
|
function xprofile_admin_delete_field_screen( $field_id, $field_type ) {
|
| 663 | 663 | $base_url = remove_query_arg( array( 'mode', 'field_id', 'bp_xprofile_delete_field' ), $_SERVER['REQUEST_URI'] ); ?> |
| 664 | 664 | |
| 665 | 665 | <div class="wrap"> |
| 666 | | <h1><?php esc_html_e( sprintf ( 'Delete %s', $field_type ), 'buddypress' ) ?></h1> |
| 667 | | <p><?php esc_html_e( sprintf( 'You are about to delete the following %s:', $field_type ), 'buddypress' ) ?></p> |
| | 666 | <h1><?php printf( esc_html__( 'Delete %s', 'buddypress' ), $field_type ); ?></h1> |
| | 667 | <p><?php printf( esc_html__( 'You are about to delete the following %s:', 'buddypress' ), $field_type ); ?></p> |
| 668 | 668 | |
| 669 | 669 | <ul class="bp-xprofile-delete-group-list"> |
| 670 | 670 | <li><?php echo esc_html( $field->name ); ?></li> |
| 671 | 671 | </ul> |
| 672 | 672 | |
| 673 | | <p><strong><?php esc_html_e( 'This action cannot be undone.', 'buddypress' ) ?></strong></p> |
| | 673 | <p><strong><?php esc_html_e( 'This action cannot be undone.', 'buddypress' ); ?></strong></p> |
| 674 | 674 | |
| 675 | | <a class="button-primary" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'mode' => 'do_delete_field', 'field_id' => $field_id ), $base_url ), 'bp_xprofile_delete_field-' . $field_id, 'bp_xprofile_delete_field' ) ); ?>"><?php esc_html_e( 'Delete Permanently', 'buddypress' ) ?></a> |
| 676 | | <a class="button" href="<?php echo esc_attr( $base_url ); ?>"><?php esc_html_e( 'Cancel', 'buddypress' ) ?></a> |
| | 675 | <a class="button-primary" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'mode' => 'do_delete_field', 'field_id' => $field_id ), $base_url ), 'bp_xprofile_delete_field-' . $field_id, 'bp_xprofile_delete_field' ) ); ?>"><?php esc_html_e( 'Delete Permanently', 'buddypress' ); ?></a> |
| | 676 | <a class="button" href="<?php echo esc_attr( $base_url ); ?>"><?php esc_html_e( 'Cancel', 'buddypress' ); ?></a> |
| 677 | 677 | </div> |
| 678 | 678 | |
| 679 | 679 | <?php |