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

  1. Erick Hitter
    Code Wizard
    Posted 3 years 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.


  2. Andrew Norcross
    Plugin Author

    Posted 3 years 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

  • YOURLS Link Creator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.