[wp-trac] [WordPress Trac] #24803: wp_counts_posts produces a notice if a non existant post type is specified

WordPress Trac noreply at wordpress.org
Sun Jul 28 20:00:15 UTC 2013


#24803: wp_counts_posts produces a notice if a non existant post type is specified
------------------------------+------------------------------
 Reporter:  creativeinfusion  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Post Types        |     Version:  3.0
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------------------

Comment (by johnpbloch):

 Instead of checking the post type, it would make more sense for the
 function to simply return an empty object right away.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24803#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list