WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ramon fincken
    Member
    Posted 3 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' )

    http://wordpress.org/extend/plugins/automatic-post-scheduler/

  2. tetele
    Member
    Plugin Author

    Posted 3 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').

    Thanks!

  3. ramon fincken
    Member
    Posted 3 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

About this Topic