[wp-trac] [WordPress Trac] #43746: Custom post type single post feed returns a 404 if has_archive is set to false when calling register_post_type()

WordPress Trac noreply at wordpress.org
Tue Jun 26 19:12:23 UTC 2018


#43746: Custom post type single post feed returns a 404 if has_archive is set to
false when calling register_post_type()
-------------------------------------+---------------------
 Reporter:  henry.wright             |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.0
Component:  Rewrite Rules            |     Version:  4.9.5
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:
-------------------------------------+---------------------

Comment (by mattkeys):

 I just added a new patch that would allow for the expected behavior of
 feeds => true, decoupling it from has_archive.

 A new ticket will probably need to be opened to prevent the comment feed
 link tag from being added to the head on sites when comment feed
 permalinks are not being generated because has_archive = false and feed =
 false.

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


More information about the wp-trac mailing list