buddypress/src/bp-settings
Mathieu Viet 7ec1feebc7 Settings: put the Legacy template pack’s in line with Nouveau’s one
Makes sure, just like the BP Nouveau template pack, the BP Legacy’s `members/single/settings/data.php` template contains a section to inform how the user can completely remove their data. This commit also brings some complementary improvements:
- Avoid `is_super_admin( $user_id )` usage in favor of a capability check.
- Remove some commented code which was duplicated from a previous section into the legacy settings/data template.
- Escape URLs and translated strings.
- Improve `/* Translators: */ inline comment.
- Do not show the link to delete an account to an administrator viewing their account as they are redirected to the member's home page when trying to reach the delete-account screen (Admins cannot delete their account form front end).

Props Venutius, tahmidulkarim

Closes https://github.com/buddypress/buddypress/pull/23
Fixes #8021



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13327 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2022-09-20 08:10:19 +00:00
..
actions Pass the user ID inside the hook fired after settings are saved 2022-07-06 09:56:46 +00:00
classes Settings: put the Legacy template pack’s in line with Nouveau’s one 2022-09-20 08:10:19 +00:00
screens Making PHPDoc Improvements to the BP Settings files. 2021-08-23 01:13:45 +00:00
bp-settings-filters.php Making PHPDoc Improvements to the BP Settings files. 2021-08-23 01:13:45 +00:00
bp-settings-functions.php Raise WordPress required version to 5.4 2021-11-07 17:22:42 +00:00
bp-settings-loader.php Remove do_autoload checks and manual class loaders. 2016-12-29 21:00:26 +00:00
bp-settings-template.php Making PHPDoc Improvements to the BP Settings files. 2021-08-23 01:13:45 +00:00