[wp-trac] [WordPress Trac] #40316: wp_count_posts() giving wrong result

WordPress Trac noreply at wordpress.org
Thu Mar 30 13:37:45 UTC 2017


#40316: wp_count_posts() giving wrong result
------------------------------+------------------------------
 Reporter:  subrataemfluence  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  General           |     Version:  4.7.3
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by subrataemfluence):

 `var_dump` output:

 {{{
 object(stdClass)#1847 (12) { ["publish"]=> string(1) "2" ["future"]=>
 int(0) ["draft"]=> int(0) ["pending"]=> int(0) ["private"]=> int(0)
 ["trash"]=> int(0) ["auto-draft"]=> string(1) "1" ["inherit"]=> int(0)
 ["closed"]=> int(0) ["spam"]=> int(0) ["orphan"]=> int(0) ["hidden"]=>
 int(0) }
 }}}

 It is not considering all POST TYPES considered in search result?

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


More information about the wp-trac mailing list