[wp-trac] [WordPress Trac] #43212: In WP Posts List Table class, comment_pending_count is calculated even if post_type does not support comments

WordPress Trac noreply at wordpress.org
Fri Feb 2 07:37:12 UTC 2018


#43212: In WP Posts List Table class, comment_pending_count is calculated even if
post_type does not support comments
-------------------------------------+-----------------------------
 Reporter:  seanchayes               |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.0
Component:  Posts, Post Types        |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42638"]:
 {{{
 #!CommitTicketReference repository="" revision="42638"
 Posts, Post Types: Don't count pending comments in
 `WP_Posts_List_Table::_display_rows()` if the post type does not support
 comments.

 Props seanchayes.
 Fixes #43212.
 }}}

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


More information about the wp-trac mailing list