Title: [Plugin: Automatic Post Scheduler] Bugfix for trashed posts
Last modified: August 19, 2016

---

# [Plugin: Automatic Post Scheduler] Bugfix for trashed posts

 *  Resolved [ramon fincken](https://wordpress.org/support/users/ramon-fincken/)
 * (@ramon-fincken)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-automatic-post-scheduler-bugfix-for-trashed-posts/)
 * `if ($post_status != 'publish')`
 * does not allow you to trash posts ( in plugin.php )
 * suggested bugfix:
    `if ( $post_status != 'publish' || $post_status == 'trash')`
 * [http://wordpress.org/extend/plugins/automatic-post-scheduler/](http://wordpress.org/extend/plugins/automatic-post-scheduler/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [tetele](https://wordpress.org/support/users/tetele/)
 * (@tetele)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-automatic-post-scheduler-bugfix-for-trashed-posts/#post-1809835)
 * 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'`).
 * Thanks!
 *  Thread Starter [ramon fincken](https://wordpress.org/support/users/ramon-fincken/)
 * (@ramon-fincken)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-automatic-post-scheduler-bugfix-for-trashed-posts/#post-1809839)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Automatic Post Scheduler] Bugfix for trashed posts’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/automatic-post-scheduler_2db200.svg)
 * [Automatic Post Scheduler](https://wordpress.org/plugins/automatic-post-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-post-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-post-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-post-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-post-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-post-scheduler/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 2 replies
 * 2 participants
 * Last reply from: [ramon fincken](https://wordpress.org/support/users/ramon-fincken/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-automatic-post-scheduler-bugfix-for-trashed-posts/#post-1809839)
 * Status: resolved