Ticket #11207: 11207.diff

File 11207.diff, 437 bytes (added by blepoxp, 3 years ago)

This fixes it for the reported solution.

  • post.php

     
    5959        } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) { 
    6060                $status = get_post_status( $post_id ); 
    6161 
    62                 if ( isset( $_POST['publish'] ) ) { 
     62                if ( isset( $_POST['publish'] ) && 'draft' != $status ) { 
    6363                        switch ( $status ) { 
    6464                                case 'pending': 
    6565                                        $message = 8;