[buddypress-trac] [BuddyPress] #2381: bp_core_get_site_options() does not limit query by siteid

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue May 11 17:59:42 UTC 2010


#2381: bp_core_get_site_options() does not limit query by siteid
------------------------+---------------------------------------------------
 Reporter:  abackstrom  |       Owner:           
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:           
Component:  Core        |    Keywords:  has-patch
------------------------+---------------------------------------------------
 `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.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2381>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list