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
This commit is contained in:
audrasjb 2021-11-17 23:08:03 +00:00
parent 387f4467a4
commit cbac37d16d
2 changed files with 4 additions and 1 deletions

View File

@ -249,6 +249,9 @@ if ( ! function_exists( 'wp_install_defaults' ) ) :
'post_content_filtered' => '', 'post_content_filtered' => '',
) )
); );
update_option( 'post_count', 1 );
$wpdb->insert( $wpdb->insert(
$wpdb->term_relationships, $wpdb->term_relationships,
array( array(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.