Multisite: Fix code formatting errors from r44805

See #46351.


git-svn-id: https://develop.svn.wordpress.org/trunk@44806 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt
2019-03-07 03:45:26 +00:00
parent 0d707e5da2
commit 716eea408b
2 changed files with 3 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ function wp_insert_site( array $data ) {
// Rebuild the data expected by the `wpmu_new_blog` hook prior to 5.1.0 using whitelisted keys.
// The `$site_data_whitelist` matches the one used in `wpmu_create_blog()`.
$site_data_whitelist = array( 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' );
$meta = array_merge( array_intersect_key( $data, array_flip( $site_data_whitelist ) ), $meta );
$meta = array_merge( array_intersect_key( $data, array_flip( $site_data_whitelist ) ), $meta );
/**
* Fires immediately after a new site is created.

View File

@@ -2379,8 +2379,7 @@ if ( is_multisite() ) :
public function data_wpmu_new_blog_action_backward_commpatible() {
return array(
'default values' => array(
array(
),
array(),
array(
'public' => 0, // `public` is one of the defaults metas in `wpmu_create_blog' function prior WordPress 5.1.0
'WPLANG' => 'en_US', // WPLANG is another default meta in `wpmu_create_blog` function prior WordPress 5.1.0.
@@ -2392,7 +2391,7 @@ if ( is_multisite() ) :
),
array(
'public' => 1,
'WPLANG' => 'en_US'
'WPLANG' => 'en_US',
),
),
'all whitelisted' => array(