mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
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 |
||
|---|---|---|
| .. | ||
| actions | ||
| classes | ||
| screens | ||
| bp-settings-filters.php | ||
| bp-settings-functions.php | ||
| bp-settings-loader.php | ||
| bp-settings-template.php | ||