[wp-trac] [WordPress Trac] #53443: The value of the `post_count` meta field is wrong because it doesn't get decremented when a post is deleted

WordPress Trac noreply at wordpress.org
Wed Nov 17 23:06:20 UTC 2021


#53443: The value of the `post_count` meta field is wrong because it doesn't get
decremented when a post is deleted
---------------------------------------------+------------------------
 Reporter:  henry.wright                     |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  5.9
Component:  Posts, Post Types                |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite
---------------------------------------------+------------------------

Comment (by audrasjb):

 In [changeset:"52201" 52201]:
 {{{
 #!CommitTicketReference repository="" revision="52201"
 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.
 }}}

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


More information about the wp-trac mailing list