[wp-trac] [WordPress Trac] #31154: register_post_type function does not check reserved post_types
WordPress Trac
noreply at wordpress.org
Tue Feb 17 07:32:21 UTC 2015
#31154: register_post_type function does not check reserved post_types
-------------------------------+------------------------------
Reporter: sebastiaandegeus | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+------------------------------
Comment (by valendesigns):
Replying to [comment:8 tyxla]:
> @valendesigns these are disallowed by design, as they are used
internally by WordPress. You can read more about these three here:
[http://codex.wordpress.org/Function_Reference/register_post_type#Reserved_Post_Types
register_post_type#Reserved_Post_Types] - quoting:
Thank you for the response. And yes, I understand the potential conflicts
and have read that article before. However, it says "should not be used",
it does not say they are disallowed. This patch is making the decision for
you even though the documentation says something different. Are they 100%
NOT allowed to be register or are they edge cases that could present a
conflict but only under a certain situation and as a developer if I know
the pitfalls shouldn't I be able to make that decision. If they are not
allowed then the documentation needs to be updated, as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31154#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list