[wp-trac] [WordPress Trac] #28683: Notify developers when register_post_type() fails because $post_type exceeds 20 characters

WordPress Trac noreply at wordpress.org
Sun Jun 29 21:47:55 UTC 2014


#28683: Notify developers when register_post_type() fails because $post_type
exceeds 20 characters
------------------------------------+------------------
 Reporter:  mattheweppelsheimer     |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  4.0
Component:  Posts, Post Types       |     Version:  3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------

Comment (by DrewAPicture):

 Talked to @mattheweppelsheimer in person at WC Seattle and I agree
 throwing a `_doing_it_wrong()` is the best approach.

 The docs already reflect the limitation fairly well, and I think it's been
 established that few if any devs really even check the result of
 `register_post_type()` or `register_taxonomy()` for that matter.

 +1 (including @jorbin's changes).

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


More information about the wp-trac mailing list