[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:02:28 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:
------------------------------------+------------------------------
Changes (by mattheweppelsheimer):
* keywords: => has-patch dev-feedback
Comment:
This [https://core.trac.wordpress.org/attachment/ticket/28683/28683.diff
28683.diff] patch adds a `_doing_it_wrong()` call to the `strlength()`
check. It still returns the error so the function signature is preserved.
I'm not sure if this patch is the best approach, but it is one way to get
the outcome I would like.
Not that they've endorsed my proposal, but thanks to @dh-shredder,
@drewapicture, and @maxcutler for some hand holding.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28683#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list