WordPress.org

Make WordPress Core

Ticket #31040: 31040.patch

File 31040.patch, 608 bytes (added by tyxla, 6 years ago)

Fixing the issue by removing the unnecessary post status check.

  • src/wp-admin/js/post.js

     
    710710                                $timestampdiv.find('.timestamp-wrap').removeClass('form-invalid');
    711711                        }
    712712
    713                         if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) {
     713                        if ( attemptedDate > currentDate ) {
    714714                                publishOn = postL10n.publishOnFuture;
    715715                                $('#publish').val( postL10n.schedule );
    716716                        } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {