[buddypress-trac] [BuddyPress] #2272: Members can't delete theirs account in wpmu
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Apr 2 10:37:24 UTC 2010
#2272: Members can't delete theirs account in wpmu
----------------------------+-----------------------------------------------
Reporter: francescolaffi | Owner: francescolaffi
Type: defect | Status: new
Priority: normal | Milestone: 1.2.4
Component: Core | Keywords: delete member account, wpmu_delete_user, has-patch, dev-feedback
----------------------------+-----------------------------------------------
problem described and solved in this forum post
http://buddypress.org/forums/topic/cant-delete-user-account
sum: if a member try to delete his account it is redirected to the
homepage and account is not deleted (wpmu only)
the problem is in the bp_core_delete_account function in bp-core.php:1700,
this is part of that function:
{{{
if ( bp_core_is_multisite() && function_exists('wpmu_delete_user')
) {
require_once( ABSPATH . '/wp-admin/includes/mu.php' );
require_once( ABSPATH . '/wp-admin/includes/user.php' );
return wpmu_delete_user( $user_id );
}
}}}
wpmu_delete_user is defined in /wp-admin/includes/mu.php that is required
only after checkin if wpmu_delete_user exist. So if that file is not
required somewhere else the if is always false.
Removing the function_exists condition from the if expr solve the problem
for me. Diff attached
--
Ticket URL: <https://trac.buddypress.org/ticket/2272>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list