[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
Mon Apr 16 01:34:52 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:
-------------------------------------+---------------------
Changes (by SergeyBiryukov):
* keywords: has-patch 2nd-opinion => 2nd-opinion needs-patch
* milestone: Awaiting Review => 5.0
Comment:
Replying to [ticket:43746 henry.wright]:
> I'd expect a feed for the post to be built if {{{feeds}}} is set to
{{{true}}}.
I agree, I don't think we need a new argument here.
The existing `feeds` argument could be updated to support single post
(comments) feed. If `has_archive` is disabled, it would be the only feed
generated.
@soulseekah Thanks for the patch! Could you updated it to decouple the
`feeds` argument from `has_archive`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43746#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list