[wp-trac] [WordPress Trac] #36979: Slug for non-public post type is working

WordPress Trac noreply at wordpress.org
Mon Aug 28 04:26:47 UTC 2023


#36979: Slug for non-public post type is working
-------------------------------+----------------------
 Reporter:  webzunft           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  4.5.2
 Severity:  normal             |  Resolution:  invalid
 Keywords:                     |     Focuses:
-------------------------------+----------------------
Changes (by DrewAPicture):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This is expected behavior and is clearly documented on the `$rewrite`
 argument in `register_post_type()`:

 > Triggers the handling of rewrites for this post type. To prevent
 rewrite, set to false.

 Anything other than an explicit `false` will result in rewrites being
 created.

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


More information about the wp-trac mailing list