[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:08:53 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:  Awaiting Review
Component:  Posts, Post Types       |     Version:  3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by jeremyfelt):

 I've been bitten by this several times. It does seem common to not check
 the response of `register_post_type` and this would be pretty helpful.
 There is precedence in something like `add_theme_support()` which returns
 false and uses `_doing_it_wrong()` if an array of types is not passed.

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


More information about the wp-trac mailing list