Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/16/2011 10:22:39 PM (13 years ago)
Author:
boonebgorges
Message:

Refactors user_meta key filtering to remove overhead in the bp global. Fixes #2952. Props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r4372 r4378  
    7474            'table_name_groupmeta' => $bp->table_prefix . 'bp_groups_groupmeta'
    7575        );
    76        
    77         // User meta_keys
    78         $user_meta_keys = array(
    79             'total_group_count'                     => 'total_group_count',
    80             'notification_groups_group_updated'         => 'notification_groups_group_updated',
    81             'notification_groups_membership_request'    => 'notification_groups_membership_request',
    82             'notification_membership_request_completed' => 'notification_membership_request_completed',
    83             'notification_groups_invite'            => 'notification_groups_invite',
    84             'notification_groups_admin_promotion'       => 'notification_groups_admin_promotion'
    85         );
    8676
    8777        // All globals for messaging component.
     
    9282            'notification_callback' => 'groups_format_notifications',
    9383            'search_string'         => __( 'Search Groups...', 'buddypress' ),
    94             'global_tables'         => $global_tables,
    95             'user_meta_keys'    => $user_meta_keys
     84            'global_tables'         => $global_tables
    9685        );
    9786
Note: See TracChangeset for help on using the changeset viewer.