Changeset 52707 for trunk/src/wp-includes/ms-network.php
- Timestamp:
- 02/11/2022 06:50:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-network.php
r49193 r52707 83 83 } 84 84 85 foreach ( (array) $ids as $id ) {86 wp_cache_delete( $id, 'networks' );85 $network_ids = (array) $ids; 86 wp_cache_delete_multiple( $network_ids, 'networks' ); 87 87 88 foreach ( $network_ids as $id ) { 88 89 /** 89 90 * Fires immediately after a network has been removed from the object cache. … … 111 112 */ 112 113 function update_network_cache( $networks ) { 114 $data = array(); 113 115 foreach ( (array) $networks as $network ) { 114 wp_cache_add( $network->id, $network, 'networks' );116 $data[ $network->id ] = $network; 115 117 } 118 wp_cache_add_multiple( $data, 'networks' ); 116 119 } 117 120
Note: See TracChangeset
for help on using the changeset viewer.