[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 21:38:01 UTC 2013


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

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"24826"]:
 {{{
 #!CommitTicketReference repository="" revision="24826"
 Return an empty stdClass from wp_count_posts() when a nonexistent post
 type is requested.

 props johnpbloch.
 fixes #24803.
 }}}

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


More information about the wp-trac mailing list