[wp-trac] [WordPress Trac] #13709: Post type name should be limited to 20 chars in register_post_type()
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 28 00:36:09 UTC 2010
#13709: Post type name should be limited to 20 chars in register_post_type()
---------------------------+------------------------------------------------
Reporter: phrostypoison | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Post Types | Version:
Severity: normal | Keywords:
---------------------------+------------------------------------------------
Comment(by johnpbloch):
My patch is a pretty quick and simple fix. I don't think it's necessary to
send a warning to the user, since we already potentially change the
post_type key with sanitize_key(). The problem, as I understand it, is
that this bug breaks WordPress without making it clear that the length of
the post_type name is the issue (i.e. almost all user-facing uses of the
post_type name use the name in its full and invalid length). Trimming the
key at registration fixes that problem and would remove the confusion.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13709#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list