[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
Fri Jul 19 19:43:37 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           |   Keywords:
------------------------------+-----------------------------
 Calling wp_count_posts with a non existant post type and perm='readable'
 produces a notice.

 wp_count_posts ('doesnotexist', 'readable') will generate

 Notice: Trying to get property of non-object in wp-includes/post.php

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


More information about the wp-trac mailing list