#13125 closed defect (bug) (fixed)
?p=xxx no longer redirects to ?page_id=xxx for Pages
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | blocker | Version: | 3.0 |
Component: | Canonical | Keywords: | |
Focuses: | Cc: |
Description
WP 2.9 redirects ?p= requests for pages to a ?page_id request. 3.0 issues a 404 instead.
Attachments (3)
Change History (16)
#2
@
15 years ago
- Keywords has-patch added
How does this patch look? It works for me, both with/without pretty permalinks enabled.
#3
@
15 years ago
- Keywords tested added
I added a new patch that change "if(" to "if (". I did notice that your patch seemed to add an extra line at the end of the file. my patch doesn't even though it's still in my file. Is this because the trunk was already updated with that change?
anyways, I also tested this patch and it works.
#4
@
15 years ago
The line at the end of the file is just line endings. It gets cleaned up upon commit.
#6
@
15 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Needs some more changes here, Specifically, ?p=<revision_ID> will attempt a redirect to invalid url's (Or at least, url's that the user should not see):
{{
?p=5 redirects to http://localhost/wordpress-commit/index.php/blog/2010/05/3-revision/
}}}
#7
@
15 years ago
Patch to check for revisions - although:
Are post revisions ever meant to be directly accessible? (the only way I can currently find to access them is through the diff viewer). If not, then link-template.php could be modified to check for this along with drafts/auto-drafts/pending:
Line 117
if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) && 'revision' != $post->post_type )
#11
@
15 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Good enough? Reopen if there's more that needs to be done.
demetris tracked this down to [13315], which looks to have done this purposefully. I think a canonical redirect would be nice here.