[wp-trac] [WordPress Trac] #47345: Not right count posts in "All" section

WordPress Trac noreply at wordpress.org
Wed May 22 09:53:06 UTC 2019


#47345: Not right count posts in "All" section
-------------------------------+------------------------------
 Reporter:  nsinelnikov        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  5.2.1
 Severity:  normal             |  Resolution:
 Keywords:  close has-patch    |     Focuses:
-------------------------------+------------------------------
Changes (by nsinelnikov):

 * keywords:  needs-testing needs-patch reporter-feedback => close has-patch


Comment:

 Hi guys,

 Ahh, I have found in my DB the posts with the custom post statuses, which
 were registered in the currently inactive plugin.

 So maybe I have a suggestion in the future to count the "All" only for
 posts with active post statuses, e.g. to check post_status like this
 string in mySQL

 AND post_status IN ( "' . implode( '","', $active_post_statuses ) . '" )

 Thanks and sorry again! Have a nice day!

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


More information about the wp-trac mailing list