Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

#2381 closed defect (bug) (fixed)

bp_core_get_site_options() does not limit query by siteid

Reported by: abackstrom Owned by:
Priority: normal Milestone: 1.2.5
Component: Core Version:
Severity: 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 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @johnjamesjacoby
16 years ago

  • Milestone1.2.5

#2 @johnjamesjacoby
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [3027]) Fixes #2381 props abackstrom

Note: See TracTickets for help on using tickets.