Closed jasgripen closed 9 years ago
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!
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
$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.