Skip to:
Content

Opened 2 years ago

Closed 2 years ago

#1818 closed defect (fixed)

Allow favorites and subscriptions on multisite installs

Reported by: isaacchapman Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: 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'

Attachments (1)

bbpress-multisite-favorites-and-subscriptions.diff (5.2 KB) - added by isaacchapman 2 years ago.
bbPress Multisite favorites and subscriptions

Download all attachments as: .zip

Change History (3)

isaacchapman2 years ago

bbPress Multisite favorites and subscriptions

comment:1 johnjamesjacoby2 years ago

  • Milestone changed from Awaiting Review to 2.1

comment:2 johnjamesjacoby2 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3856]) Allow user favorites and subscriptions to work per site on multisite installations. Props isaacchapman. Fixes #1818.

Note: See TracTickets for help on using tickets.