[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 23:26:26 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:  audrasjb
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  5.9
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch commit   |     Focuses:  multisite
-------------------------------+------------------------
Changes (by dlh):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 [52201] will cause the `post_count` option to also be created in single-
 site installations, which didn't previously occur, as far as I can tell.

 Would a change to something like the following be appropriate?

 {{{
 if ( is_multisite() ) {
         update_posts_count();
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54462#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list