Automatic Post Scheduler
[resolved] Bugfix for trashed posts (3 posts)

  1. ramon fincken
    Posted 5 years ago #

    if ($post_status != 'publish')

    does not allow you to trash posts ( in plugin.php )

    suggested bugfix:
    if ( $post_status != 'publish' || $post_status == 'trash' )


  2. tetele
    Plugin Author

    Posted 5 years ago #

    Hi Ramon!

    Could you please be a little more specific as to what doesn't work as expected? I just tried trashing posts (both published and scheduled) and it worked fine on 3.0.2

    Also, by looking at the code you posted, it's clear to me that the second condition is redundant (and only gets evaluated when $post_status == 'publish').


  3. ramon fincken
    Posted 5 years ago #

    Hmm gheghe !

    You are right, I think I was confused by my other request. I had to make some alterations to that part of the script to serve my setup.

    I'll change this to resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Automatic Post Scheduler
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic