Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove canonical redirect for uploads #5

Merged
merged 1 commit into from Aug 12, 2013

Conversation

westonruter
Copy link
Contributor

If you upload an attachment and then delete it from disk, WordPress may think that you're actually referring to the attachment post itself. So we need to disable canonical redirects for URLs that are pointing inside of the uploads directory.

local_wordpress_trunk_dev___just_another_wordpress_site

And don't use is_404() as the initial check, but rather check to see
if the request is for something inside the uploads directory.

Fixes #5
@westonruter
Copy link
Contributor Author

Gotta love hub!

git checkout remove-canonical-redirect
hub pull-request -b develop -i 5

Attaches pull request from remove-canonical-redirect to develop to this existing issue.

@westonruter
Copy link
Contributor Author

Upon merging this PR, version can bump from 0.9 to 0.9.1.

@ghost ghost assigned c3mdigital Aug 10, 2013
@westonruter
Copy link
Contributor Author

@c3mdigital please review when you get a chance.

@c3mdigital c3mdigital merged commit 995c213 into develop Aug 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants