ChrisWiegman/Better-YOURLS — pull request #1 by jasgripen (2014-12-25 14:32:20+00:00)
Title: id in pre_get_shortlink can be zero

$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.