Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2381 closed defect (bug) (fixed)

bp_core_get_site_options() does not limit query by siteid

Reported by: abackstrom's profile abackstrom Owned by:
Milestone: 1.2.5 Priority: normal
Severity: Version:
Component: Core Keywords: has-patch
Cc: abackstrom

Description

bp_core_get_site_options() in bp-core.php will query against $wpdb->sitemeta if bp_core_is_multisite() returns true. However, it does not limit records that match the current site ID, which can cause duplicate keys and inaccurate site option values to be returned. site_id should be included in the WHERE clause.

Attachments (1)

bp-core.php.diff (724 bytes) - added by abackstrom 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @johnjamesjacoby
14 years ago

  • Milestone set to 1.2.5

#2 @johnjamesjacoby
14 years ago

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

(In [3027]) Fixes #2381 props abackstrom

Note: See TracTickets for help on using tickets.