[wp-trac] [WordPress Trac] #20374: Unit Test failure: ?pagename=actually-a-post-name redirect
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 6 21:55:00 UTC 2012
#20374: Unit Test failure: ?pagename=actually-a-post-name redirect
--------------------------+--------------------------
Reporter: markjaquith | Owner: markjaquith
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Canonical | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------------
Changes (by nacin):
* status: closed => reopened
* resolution: fixed =>
Comment:
I think this can break a valid URL to a post. Well, specifically, non-post
posts.
get_post_permalink() is used to generate links to items of custom post
types. A post type's ugly link is in the form of
?post_type=$post_type&p=1234.
This should be reproducible even with pretty permalinks enabled on the
site. Setting public = true, query_var = false, rewrite = false should do
it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20374#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list