[wp-trac] [WordPress Trac] #58685: Fix return description for wp_count_posts()

WordPress Trac noreply at wordpress.org
Fri Jun 30 12:39:00 UTC 2023


#58685: Fix return description for wp_count_posts()
--------------------------+-----------------------------
 Reporter:  crstauf       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If post type passed to `wp_count_posts()` does not exist, function returns
 an empty `stdClass`: adjust the `@return` description to indicate this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58685>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list