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-activity/bp-activity-loader.php

    r4372 r4378  
    6868            'table_name_meta' => $bp->table_prefix . 'bp_activity_meta',
    6969        );
    70        
    71         // User meta keys
    72         $user_meta_keys = array(
    73             'new_mention_count'             => 'bp_new_mention_count',
    74             'new_mentions'              => 'bp_new_mentions',
    75             'favorite_activities'           => 'bp_favorite_activities',
    76             'latest_update'             => 'bp_latest_update',
    77             'notification_activity_new_mention' => 'notification_activity_new_mention',
    78             'notification_activity_new_reply'   => 'notification_activity_new_reply'
    79         );
    8070
    8171        // All globals for activity component.
     
    8676            'root_slug'             => isset( $bp->pages->activity->slug ) ? $bp->pages->activity->slug : BP_ACTIVITY_SLUG,
    8777            'search_string'         => __( 'Search Activity...', 'buddypress' ),
    88             'global_tables'         => $global_tables,
    89             'user_meta_keys'    => $user_meta_keys
     78            'global_tables'         => $global_tables
    9079        );
    9180
Note: See TracChangeset for help on using the changeset viewer.