Support » Plugin: Oasis Workflow » Issue with rewrites not deleting

  • Resolved theo38

    (@theo38)


    Hi there,

    There also appears to have been introduced an issue whereby rewrites are not deleted when they are copied back. You still have the option:

    Delete the revision after it’s copied over to the original article?

    so am assuming this is another bug.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you able to explain the reason why you have moved to removing these on cron event now?

    Also, the issue with your code is that you aren’t supporting custom post types:

    
           $args = array( 
                  'post_status' => 'usedrev',
    
    Should be more like this:
    
           $args = array(
                  'post_type' => 'any',
                  'numberposts' => -1,
                  'post_status' => 'usedrev',
           );
           $revision_post = get_posts( $args );
    

    Or however you want to approach that.

    Plugin Author nuggetsol

    (@nuggetsol)

    Got it. We will make that change.

    The reason, we had to go the route of a scheduled event, instead of a direct delete, was to support Gutenberg.

    After the sign off action is completed, the post page doesn’t get redirected to the list/inbox page. Since it stays there, delete of the revised post will run into issues.

    Thanks for looking into it.

    Plugin Author nuggetsol

    (@nuggetsol)

    fixed with the latest pro version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with rewrites not deleting’ is closed to new replies.