Make WordPress Core


Ignore:
Timestamp:
11/17/2021 11:06:06 PM (5 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r51955 r52201  
    250250                        )
    251251                );
     252
     253                update_option( 'post_count', 1 );
     254
    252255                $wpdb->insert(
    253256                        $wpdb->term_relationships,
Note: See TracChangeset for help on using the changeset viewer.