norcross/yourls-link-creator — pull request #1 by ethitter (2012-12-31 17:51:35+00:00)
Title: Switch to transition_post_status instead of save_post

Scheduled posts don't get any love because the `save_post` action isn't fired by `wp_transition_post_status()`.

Switching to the `transition_post_status` action instead of `save_post` fixes this problem. Since that action provides the old and new statuses, it also eliminates the need for `get_post_status()` and lets you move the status check logic to the start of the function. Autosave doesn't trigger either, so that check can be eliminated.

I love the plugin, but my scheduled posts weren't feeling the love.