[wp-trac] [WordPress Trac] #26277: Codex entry on "register post type" has incorrect information
WordPress Trac
noreply at wordpress.org
Wed Nov 27 01:23:36 UTC 2013
#26277: Codex entry on "register post type" has incorrect information
---------------------------+----------------------
Reporter: beowulfenator | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Permalinks | Version:
Severity: normal | Resolution: invalid
Keywords: |
---------------------------+----------------------
Comment (by beowulfenator):
I tested this with 3.7.1, and here's what I got:
If register_post_type for a custom post type named "deposits" with
'pages'=>false, the following two rules are created (among others):
individuals/deposits/([^/]+)/page/?([0-9]{1,})/?$
=>
index.php?deposit=$matches[1]&paged=$matches[2]
individuals/deposits/([^/]+)(/[0-9]+)?/?$
=>
index.php?deposit=$matches[1]&page=$matches[2]
However, if I call it with 'paged'=>false, the first rule is not created.
Is this the correct behaviour?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26277#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list