[wp-trac] [WordPress Trac] #20571: problems with slug and view in custom post types
WordPress Trac
noreply at wordpress.org
Sun Jul 28 21:33:36 UTC 2013
#20571: problems with slug and view in custom post types
--------------------------+------------------------------
Reporter: thomask | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.3.1
Severity: minor | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by jarednova):
The attached diff fixes the issue reported by @thomask; I've tested and
verified my diff in the following scenarios:
- When the cpt has rewrite = true
- When the cpt has rewrite = false
- When the cpt has capability_type = post
- When the cpt has capability_type = page
I'm unable to see any diff when using postname vs. pagename as the
replacement var; I went with postname b/c it seemed more universal
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20571#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list