mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Meta data caching improvements. Props mdawaffe. see #15545
git-svn-id: https://develop.svn.wordpress.org/trunk@16596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1037,10 +1037,9 @@ function get_user_metavalues($ids) {
|
||||
foreach ( $ids as $id )
|
||||
$objects[$id] = array();
|
||||
|
||||
update_meta_cache('user', $ids);
|
||||
$metas = update_meta_cache('user', $ids);
|
||||
|
||||
foreach ( $ids as $id ) {
|
||||
$meta = get_metadata('user', $id);
|
||||
foreach ( $metas as $id => $meta ) {
|
||||
foreach ( $meta as $key => $metavalues ) {
|
||||
foreach ( $metavalues as $value ) {
|
||||
$objects[$id][] = (object)array( 'user_id' => $id, 'meta_key' => $key, 'meta_value' => $value);
|
||||
|
||||
Reference in New Issue
Block a user