Changeset 44806
- Timestamp:
- 03/07/2019 03:45:26 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-site.php
r44805 r44806 108 108 // The `$site_data_whitelist` matches the one used in `wpmu_create_blog()`. 109 109 $site_data_whitelist = array( 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' ); 110 $meta = array_merge( array_intersect_key( $data, array_flip( $site_data_whitelist ) ), $meta );110 $meta = array_merge( array_intersect_key( $data, array_flip( $site_data_whitelist ) ), $meta ); 111 111 112 112 /** -
trunk/tests/phpunit/tests/multisite/site.php
r44805 r44806 2380 2380 return array( 2381 2381 'default values' => array( 2382 array( 2383 ), 2382 array(), 2384 2383 array( 2385 2384 'public' => 0, // `public` is one of the defaults metas in `wpmu_create_blog' function prior WordPress 5.1.0 … … 2393 2392 array( 2394 2393 'public' => 1, 2395 'WPLANG' => 'en_US' 2394 'WPLANG' => 'en_US', 2396 2395 ), 2397 2396 ),
Note: See TracChangeset
for help on using the changeset viewer.