Ticket #46437: 46437.diff
File 46437.diff, 760 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/schema.php
1316 1316 return; 1317 1317 } 1318 1318 1319 /** 1320 * Filters meta for a site on creation. 1321 * 1322 * @since 5.2.0 1323 * 1324 * @param array $meta Associative array of site meta keys and values to be inserted. 1325 * @param int $site_id ID of site to populate. 1326 */ 1327 $site_meta = apply_filters( 'populate_site_meta', $meta, $site_id ); 1328 1319 1329 $insert = ''; 1320 foreach ( $ meta as $meta_key => $meta_value ) {1330 foreach ( $site_meta as $meta_key => $meta_value ) { 1321 1331 if ( is_array( $meta_value ) ) { 1322 1332 $meta_value = serialize( $meta_value ); 1323 1333 }