[wp-trac] [WordPress Trac] #35916: WP_Rewrite::generate_rewrite_rules() ignores boolean $endpoints / $feed parameters for CPT
WordPress Trac
noreply at wordpress.org
Wed Apr 20 11:40:40 UTC 2016
#35916: WP_Rewrite::generate_rewrite_rules() ignores boolean $endpoints / $feed
parameters for CPT
------------------------------------------+------------------------------
Reporter: solo14000 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by thomascharbit):
Hi,
can you also confirm that the codex seems wrong about what argument to use
to disable pagination?
On:
https://codex.wordpress.org/Function_Reference/register_post_type#Arguments
It says to set `pages` argument to false, while it should be `paged`
according to what `add_permastruct()` does?
I don't know if the docs should be edited or if the `pages` argument
should be handled, like it's done for `feeds` (which is mapped to `feed`
in `register_post_type()`)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35916#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list