WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/26/2010 09:35:26 PM (9 years ago)
Author:
ryan
Message:

Meta data caching improvements. Props mdawaffe. see #15545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r16497 r16596  
    10381038        $objects[$id] = array();
    10391039
    1040     update_meta_cache('user', $ids);
    1041 
    1042     foreach ( $ids as $id ) {
    1043         $meta = get_metadata('user', $id);
     1040    $metas = update_meta_cache('user', $ids);
     1041
     1042    foreach ( $metas as $id => $meta ) {
    10441043        foreach ( $meta as $key => $metavalues ) {
    10451044            foreach ( $metavalues as $value ) {
Note: See TracChangeset for help on using the changeset viewer.