Opened 4 years ago
Closed 4 years ago
#51776 closed defect (bug) (fixed)
Attachement page for private post type is a 404.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | 5.6 |
Component: | Permalinks | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
- Create Private post type.
- Create post at the post type.
- Upload image in the post.
- See attachment page.
- 404 the attachment page.
It occurs in 5.6-beta4.
Does not occur in 5.6-beta3.
related #5272 ?
Change History (10)
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
4 years ago
This ticket was mentioned in PR #745 on WordPress/wordpress-develop by peterwilsoncc.
4 years ago
#4
- Keywords has-patch has-unit-tests added
https://core.trac.wordpress.org/ticket/51776
Starting with some unit tests -- they fail.
#5
@
4 years ago
@peterwilsoncc
To assist with reproducing the problem, when you get a 404 on the attachment page are you logged in as a user with access to the private post?
Yes, Whether logged in or not, get a 404.
Thanks.
#6
@
4 years ago
Thanks boss, much appreciated!
You're correct, the issue comes from #5272. The use of get_post_status()
in the new check in redirect_canonical()
is causing part of the issue but I am still to get my full notes worked out on the issue. I will drop them here once I have them.
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.
4 years ago
#9
@
4 years ago
Having discussed this with @helen, I am going to largely revert the changes for #5272 as RC1 is due quite soon.
The patch is in the pull request https://github.com/WordPress/wordpress-develop/pull/745
@Toro_Unit thank you for the report, I've self assigned this to take a look.
To assist with reproducing the problem, when you get a 404 on the attachment page are you logged in as a user with access to the private post?
Thanks