[wp-trac] [WordPress Trac] #31134: register_post_type() should call a _doing_it_wrong() when called with an empty post type name

WordPress Trac noreply at wordpress.org
Fri Feb 13 16:42:38 UTC 2015


#31134: register_post_type() should call a _doing_it_wrong() when called with an
empty post type name
-------------------------------+-----------------------------
 Reporter:  tyxla              |       Owner:  SergeyBiryukov
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.2
Component:  Posts, Post Types  |     Version:  3.0
 Severity:  minor              |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+-----------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31450"]:
 {{{
 #!CommitTicketReference repository="" revision="31450"
 Return a `WP_Error` if an empty name is provided when registering a post
 type.

 Fixes #31134
 Props tyxla, MikeHansenMe
 }}}

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


More information about the wp-trac mailing list