diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php index d4f9a5f9d0..61b81185cc 100644 --- a/wp-includes/ms-site.php +++ b/wp-includes/ms-site.php @@ -69,9 +69,11 @@ function wp_insert_site( array $data ) { return new WP_Error( 'db_insert_error', __( 'Could not insert site into the database.' ), $wpdb->last_error ); } - clean_blog_cache( $wpdb->insert_id ); + $site_id = (int) $wpdb->insert_id; - $new_site = get_site( $wpdb->insert_id ); + clean_blog_cache( $site_id ); + + $new_site = get_site( $site_id ); if ( ! $new_site ) { return new WP_Error( 'get_site_error', __( 'Could not retrieve site data.' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 08dee928b9..fdb3280f0c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47930'; +$wp_version = '5.5-alpha-47932'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.