[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
Mon Jan 26 07:23:54 UTC 2015
#31134: register_post_type() should call a _doing_it_wrong() when called with an
empty post type name
----------------------------------------+------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Posts, Post Types | Version: 3.0
Severity: minor | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------
Comment (by tyxla):
@DrewAPicture yeah, all makes sense. A single `_doing_it_wrong()` call
would be better, and unit tests would be needed here. Let me attach a
patch. Since there is no unit test for the maximum post type length, I'll
add one for that too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31134#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list