mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
cbac37d16d
commit
03b59ce449
@ -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,
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user