[wp-trac] [WordPress Trac] #44270: Non-public custom post types have rewrite rules enabled by default

WordPress Trac noreply at wordpress.org
Wed Oct 3 17:54:46 UTC 2018


#44270: Non-public custom post types have rewrite rules enabled by default
-------------------------------+------------------------------
 Reporter:  TheDeadMedic       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  trivial            |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+------------------------------
Changes (by ryanshoover):

 * keywords:   => has-patch


Comment:

 Just submitted a patch that would take care of this need. Changes the
 default of `rewrite` to be the value of `publicly_queryable` (which takes
 the default of `public`).

 `publicly_queryable` made the most sense since rewrites determine the
 pretty URL for a post if you query it on the frontend.

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


More information about the wp-trac mailing list