Opened 4 years ago
Closed 4 years ago
#8321 closed enhancement (fixed)
Add delete confirmation screen for XProfile fields
Reported by: | oztaser | Owned by: | slaFFik |
---|---|---|---|
Milestone: | 7.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch commit |
Cc: |
Description
Based on @imath's suggestion in 8305, we should add a delete confirmation screen to xprofile fields for better user experience.
Attachments (3)
Change History (9)
#2
@
4 years ago
- Keywords needs-refresh added; has-patch removed
Hi @oztaser
I've just tested your patch. It works great. Thanks again for your work on this. I believe we should improve it a bit:
- making sure the i18n function are not using PHP code inside them. Instead of
<?php esc_html_e( sprintf ( 'Delete %s', $field_type ), 'buddypress' ) ?>
we should use<?php printf( esc_html__( 'Delete %s', 'buddypress' ), $field_type ); ?>
. - making sure there's a final
;
after inline PHP functions.
8321.improvements.patch is containing these improvements.
#3
@
4 years ago
Hi @imath,
Thanks for the review and suggestions. I added your improvements to my patch and I'll keep these in my mind for future patches :)
Thanks again.
#4
@
4 years ago
- Keywords has-patch commit added; needs-refresh removed
Awesome! You're welcome & thanks a lot for updating the patch. I'll commit it asap.
Awesome @oztaser. Thanks a lot for this new patch. I'll look into it and review it asap.