[wp-trac] [WordPress Trac] #31154: register_post_type function does not check reserved post_types

WordPress Trac noreply at wordpress.org
Tue Feb 17 06:33:08 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:
-------------------------------+------------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch => needs-patch


Comment:

 Worth mentioning that there's actually a
 [http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms
 whole list] of reserved terms that should not be registered as post types
 or taxonomies.

 Also, I think these `_doing_it_wrong()` strings could be reworked a little
 bit. It's much less about the post types being registered as non-built-in
 and more that post types cannot be registered with select reserved terms.

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


More information about the wp-trac mailing list