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:
parent
387f4467a4
commit
cbac37d16d
|
@ -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(
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue