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-core/bp-core-component.php

    r4372 r4378  
    9595     * @uses apply_filters() Calls 'bp_{@link bp_Component::name}_id'
    9696     * @uses apply_filters() Calls 'bp_{@link bp_Component::name}_slug'
    97      * @uses apply_filters() Calls 'bp_user_meta_keys_$key_name'
    9897     *
    9998     * @param arr $args Used to
     
    109108            'notification_callback' => '',
    110109            'search_string'         => '',
    111             'global_tables'         => '',
    112             'user_meta_keys'    => array()
     110            'global_tables'         => ''
    113111        );
    114112        $r = wp_parse_args( $args, $defaults );
     
    130128            foreach ( $r['global_tables'] as $global_name => $table_name )
    131129                $this->$global_name = $table_name;
    132            
    133         // User meta keys
    134         if ( !empty( $r['user_meta_keys'] ) ) {
    135             foreach ( $r['user_meta_keys'] as $key_name => $key_value )
    136                 $bp->user_meta_keys->$key_name = apply_filters( "bp_user_meta_keys_$key_name", $key_value );
    137         }
    138130       
    139131        /** BuddyPress ********************************************************/
Note: See TracChangeset for help on using the changeset viewer.