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

id in pre_get_shortlink can be zero #1

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

jasgripen
Copy link

$id in function pre_get_shortlink is 0 if it's called for the current blog post so the id needs to come from the post instead. Otherwise wordpress will not serve the youlrs url in the shortlink meta tag and http header.

… blog post so the id needs to come from the post instead. Otherwise wordpress will not serve the youlrs url in the shortlink meta tag and http header.
@Benunc
Copy link

Benunc commented Jan 21, 2015

Yes! I changed that line, and it worked on my end! Thanks! I pored over that function (I had isolated it as the culprit, but couldn't figure out what was causing it to fail back to $shortlink)

Thanks jasgrlpen!

@ChrisWiegman
Copy link
Contributor

My apologies for the [very] late reply here. I finally have some time to get back to this so I'll be looking at this PR over the weekend

ChrisWiegman added a commit that referenced this pull request Mar 16, 2015
id in pre_get_shortlink can be zero
@ChrisWiegman ChrisWiegman merged commit e84e311 into aaroneaton:master Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants