From cbac37d16d581e3f81f1470e514faaf286d02820 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 17 Nov 2021 23:08:03 +0000 Subject: [PATCH] Posts, Post Types: Increment `post_count` option value during blog creation. Previously, the `post_count` option value was not incremented when the default "Hello world!" post is inserted during blog creation on a multisite installation. Props henry.wright. Fixes #54462. See #53443. Built from https://develop.svn.wordpress.org/trunk@52201 git-svn-id: http://core.svn.wordpress.org/trunk@51793 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 3be073f7af..7a10de7e1e 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -249,6 +249,9 @@ if ( ! function_exists( 'wp_install_defaults' ) ) : 'post_content_filtered' => '', ) ); + + update_option( 'post_count', 1 ); + $wpdb->insert( $wpdb->term_relationships, array( diff --git a/wp-includes/version.php b/wp-includes/version.php index c7fd5943cd..e220485a3a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52200'; +$wp_version = '5.9-alpha-52201'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.