buddypress/bp-settings
Boone B Gorges 7e99ce665a Check bp_disable_account_deletion() setting in screen function rather than bp_core_delete_account() business function
The purpose of the disable-account-deletion setting is to prevent normal (ie
non-admin) BP users from deleting their own accounts through the front-end
interface. Locating the settings check in the business function
bp_core_delete_account() therefore caused problems when deleting accounts in
areas that were not meant to be covered by the setting, such as when accounts
are deleted in the Dashboard by an admin, or when the BP_Signup::delete()
method is called. This caused a particular problem in BP 2.0, because the
deletion of signups was no longer correctly cleaning up other data from the
database (xprofile, usermeta, etc).

Fixes #5575

git-svn-id: https://buddypress.svn.wordpress.org/branches/2.0@8325 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2014-04-26 18:45:35 +00:00
..
bp-settings-actions.php Check bp_disable_account_deletion() setting in screen function rather than bp_core_delete_account() business function 2014-04-26 18:45:35 +00:00
bp-settings-functions.php Settings: 2012-09-07 14:50:43 +00:00
bp-settings-loader.php Replace BP_PLUGIN_DIR and BP_PLUGIN_URL constant usages with plugin_dir and plugin_url BuddyPress variables, respectively. Also replaces $bp global touches with buddypress() calls within the above scopes. 2014-01-24 23:48:48 +00:00
bp-settings-screens.php Quick audit of existing phpDoc @param, @return, and @since parameters. Fixes #5031 2013-06-19 21:41:08 +00:00
bp-settings-template.php Settings: 2012-09-07 14:50:43 +00:00