From 7ec74901d3d8184da6643f1e598b3d15581368cd Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 17 Apr 2019 20:57:52 +0000 Subject: [PATCH] Docs: Add arguments passed by `wp_insert_site()` to `wp_initialize_site()`. Props codemascot. Fixes #45061. Built from https://develop.svn.wordpress.org/trunk@45236 git-svn-id: http://core.svn.wordpress.org/trunk@45045 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-site.php | 8 ++++++++ wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php index 2d568a57f5..9526973510 100644 --- a/wp-includes/ms-site.php +++ b/wp-includes/ms-site.php @@ -30,6 +30,14 @@ * @type int $spam Whether the site is spam. Default 0. * @type int $deleted Whether the site is deleted. Default 0. * @type int $lang_id The site's language ID. Currently unused. Default 0. + * @type int $user_id User ID for the site administrator. Passed to the + * `wp_initialize_site` hook. + * @type string $title Site title. Default is 'Site %d' where %d is the site ID. Passed + * to the `wp_initialize_site` hook. + * @type array $options Custom option $key => $value pairs to use. Default empty array. Passed + * to the `wp_initialize_site` hook. + * @type array $meta Custom site metadata $key => $value pairs to use. Default empty array. + * Passed to the `wp_initialize_site` hook. * } * @return int|WP_Error The new site's ID on success, or error object on failure. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index e281432668..2d945d3ad7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta3-45235'; +$wp_version = '5.2-beta3-45236'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.