Posts, Post Types: Increment post_count option value only on multisite installations.

Avoid the `post_count` option to be created on single-site installations.

Follow-up to [52201].

Props dlh, henry.wright.
Fixes #54462.

Built from https://develop.svn.wordpress.org/trunk@52202


git-svn-id: http://core.svn.wordpress.org/trunk@51794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2021-11-18 00:20:59 +00:00
parent cbac37d16d
commit 03b59ce449
2 changed files with 4 additions and 2 deletions

View File

@ -250,7 +250,9 @@ if ( ! function_exists( 'wp_install_defaults' ) ) :
)
);
update_option( 'post_count', 1 );
if ( is_multisite() ) {
update_posts_count();
}
$wpdb->insert(
$wpdb->term_relationships,

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-52201';
$wp_version = '5.9-alpha-52202';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.