WordPress.org

Ready to get started?Download WordPress

Forums

YOURLS Link Creator
[resolved] URL isn't generated for a scheduled post (2 posts)

  1. Erick Hitter
    Member
    Posted 1 year ago #

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

    Switching to the transition_post_status action instead of save_post should fix 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.

    Changes made against the Git repo. Pull request awaits: https://github.com/norcross/yourls-link-creator/pull/1.

    http://wordpress.org/extend/plugins/yourls-link-creator/

  2. Andrew Norcross
    Member
    Plugin Author

    Posted 1 year ago #

    thanks! pulling the git now, will commit it once I get it sync'd up.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.