From 206f8b1d95830b7824b904b120379d0c648744e7 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 17 Nov 2021 23:06:06 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52201 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 3be073f7af..7a10de7e1e 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/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(