Opened 15 years ago
Closed 15 years ago
#2373 closed defect (bug) (fixed)
Use wp-admin/includes/ms.php in WP 3.0
Reported by: | mattwiebe | Owned by: | |
---|---|---|---|
Milestone: | 1.2.4 | Priority: | critical |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch |
Cc: |
Description
BP includes the deprecated in WP 3.0 wp-admin/includes/mu.php file for setting spammer status and account deletion. We should use ms.php instead. Currently get a fatal error when trying to delete a user under WP 3.0.
I've attached a patch to load whichever is appropriate.
Attachments (2)
Change History (5)
#2
@
15 years ago
Thanks for the feedback Ron.
Loading of ms.php/mu.php happens after a bp_core_is_multisite() check (the bp_core_delete account() function already checked it before) and I'm using $wp_version to check which file to load. I did away with the file_exists() calls because they were unnecessary once we check for the version.
You should check the bp_core_is_multisite function first before hitting the file system.
Also, $wp_version can be used to determine whether it is 3.0 or not.