Opened 13 years ago
Closed 13 years ago
#1818 closed defect (bug) (fixed)
Allow favorites and subscriptions on multisite installs
Reported by: | isaacchapman | Owned by: | |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Tools - Code Improvements | Keywords: | has-patch |
Cc: |
Description
Currently the _bbp_favorites and _bbp_subscriptions being stored in $wpdb->usermeta without any sort of blog_id association, possibly causing a topic on one blog from being confused with a different topic on a different blog as long as the topic_id (post_id/$wpdb->posts->ID) is the same.
The attached patch replaces these meta keys with blog specific ones in both SQL statements and [update|delete]_user_meta calls by switching:
'_bbp_favorites' to '_bbp_' . $wpdb->prefix . 'favorites'
'_bbp_subscriptions' to '_bbp_' . $wpdb->prefix . 'subscriptions'
bbPress Multisite favorites and subscriptions