Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/16/2011 10:22:39 PM (14 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-friends/bp-friends-loader.php

    r4372 r4378  
    7171            'table_name_meta' => $bp->table_prefix . 'bp_friends_meta',
    7272        );
    73        
    74         // User meta keys
    75         $user_meta_keys = array(
    76             'total_friend_count'                => 'total_friend_count',
    77             'notification_friends_friendship_request'   => 'notification_friends_friendship_request',
    78             'notification_friends_friendship_accepted'  => 'notification_friends_friendship_accepted'
    79         );
    8073
    8174        // All globals for the friends component.
     
    8679            'search_string'         => __( 'Search Friends...', 'buddypress' ),
    8780            'notification_callback' => 'friends_format_notifications',
    88             'global_tables'         => $global_tables,
    89             'user_meta_keys'    => $user_meta_keys
     81            'global_tables'         => $global_tables
    9082        );
    9183
Note: See TracChangeset for help on using the changeset viewer.