diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php index fe012c5fca..6d854e3fb4 100644 --- a/wp-includes/ms-site.php +++ b/wp-includes/ms-site.php @@ -1234,8 +1234,9 @@ function wp_maybe_transition_site_statuses_on_update( $new_site, $old_site = nul * * @since MU (3.0.0) * - * @param int $site_id Site ID. - * @param string $value The value of the site status. + * @param int $site_id Site ID. + * @param string $is_public Whether the site is public. A numeric string, + * for compatibility reasons. Accepts '1' or '0'. */ do_action( 'update_blog_public', $site_id, $new_site->public ); } @@ -1260,17 +1261,18 @@ function wp_maybe_clean_new_site_cache_on_update( $new_site, $old_site ) { * * @since 5.1.0 * - * @param int $site_id Site ID. - * @param string $public The value of the site status. + * @param int $site_id Site ID. + * @param string $is_public Whether the site is public. A numeric string, + * for compatibility reasons. Accepts '1' or '0'. */ -function wp_update_blog_public_option_on_site_update( $site_id, $public ) { +function wp_update_blog_public_option_on_site_update( $site_id, $is_public ) { // Bail if the site's database tables do not exist (yet). if ( ! wp_is_site_initialized( $site_id ) ) { return; } - update_blog_option( $site_id, 'blog_public', $public ); + update_blog_option( $site_id, 'blog_public', $is_public ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index b4fdb4865b..fcf0d4d50d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54946'; +$wp_version = '6.2-alpha-54947'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.