Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/13/2012 04:31:42 PM (14 years ago)
Author:
boonebgorges
Message:

Whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-cache.php

    r5683 r5986  
    5555function bp_update_meta_cache( $args = array() ) {
    5656    global $wpdb;
    57    
     57
    5858    $defaults = array(
    5959        'object_ids'       => array(), // Comma-separated list or array of item ids
     
    6666    $r = wp_parse_args( $args, $defaults );
    6767    extract( $r );
    68        
     68
    6969    if ( empty( $object_ids ) || empty( $object_type ) || empty( $meta_table ) ) {
    7070        return false;
    7171    }
    72    
     72
    7373    if ( empty( $cache_key_prefix ) ) {
    7474        $cache_key_prefix = $meta_table;
    7575    }
    76    
     76
    7777    if ( empty( $object_column ) ) {
    7878        $object_column = $object_type . '_id';
     
    8787
    8888    $cache = array();
    89    
     89
    9090    // Get meta info
    9191    $id_list   = join( ',', $object_ids );
     
    108108        }
    109109    }
    110    
     110
    111111    foreach ( $object_ids as $id ) {
    112112        if ( ! isset($cache[$id]) )
    113113            $cache[$id] = array();
    114    
     114
    115115        foreach( $cache[$id] as $meta_key => $meta_value ) {
    116116            wp_cache_set( $cache_key_prefix . '_' . $id . '_' . $meta_key, $meta_value, 'bp' );
Note: See TracChangeset for help on using the changeset viewer.