[wp-trac] [WordPress Trac] #54462: The `post_count` option value isn't incremented when the "Hello world!" post is inserted during blog creation
WordPress Trac
noreply at wordpress.org
Wed Nov 17 18:56:22 UTC 2021
#54462: The `post_count` option value isn't incremented when the "Hello world!"
post is inserted during blog creation
-------------------------------+-----------------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords: needs-patch
Focuses: multisite |
-------------------------------+-----------------------------
The "Hello world!" post that is generated during blog creation is inserted
using {{{$wpdb}}} methods. {{{wp_insert_post()}}} isn't used. This results
in the {{{update_posts_count()}}} function not being called when the post
is inserted. Therefore, the {{{post_count}}} option value doesn't equal 1
as expected at this point.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54462>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list