Changeset 52707 for trunk/src/wp-includes/meta.php
- Timestamp:
- 02/11/2022 06:50:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r52140 r52707 497 497 498 498 if ( $delete_all ) { 499 foreach ( (array) $object_ids as $o_id ) { 500 wp_cache_delete( $o_id, $meta_type . '_meta' ); 501 } 499 $data = (array) $object_ids; 502 500 } else { 503 wp_cache_delete( $object_id, $meta_type . '_meta' ); 504 } 501 $data = array( $object_id ); 502 } 503 wp_cache_delete_multiple( $data, $meta_type . '_meta' ); 505 504 506 505 /** … … 1192 1191 } 1193 1192 1193 $data = array(); 1194 1194 foreach ( $non_cached_ids as $id ) { 1195 1195 if ( ! isset( $cache[ $id ] ) ) { 1196 1196 $cache[ $id ] = array(); 1197 1197 } 1198 wp_cache_add( $id, $cache[ $id ], $cache_key ); 1199 } 1198 $data[ $id ] = $cache[ $id ]; 1199 } 1200 wp_cache_add_multiple( $data, $cache_key ); 1200 1201 1201 1202 return $cache;
Note: See TracChangeset
for help on using the changeset viewer.